Populate data/ hierarchy
[yangtools.git] / data / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / stream / ForwardingNormalizedNodeStreamWriter.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.data.api.schema.stream;
9
10 import com.google.common.collect.ClassToInstanceMap;
11 import com.google.common.collect.ForwardingObject;
12 import java.io.IOException;
13 import javax.xml.transform.dom.DOMSource;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
16 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
17 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
18
19 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject
20         implements NormalizedNodeStreamWriter {
21     @Override
22     protected abstract NormalizedNodeStreamWriter delegate();
23
24     @Override
25     public ClassToInstanceMap<NormalizedNodeStreamWriterExtension> getExtensions() {
26         return delegate().getExtensions();
27     }
28
29     @Override
30     public void startLeafNode(final NodeIdentifier name) throws IOException {
31         delegate().startLeafNode(name);
32     }
33
34     @Override
35     public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
36         delegate().startLeafSet(name, childSizeHint);
37     }
38
39     @Override
40     public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
41         delegate().startOrderedLeafSet(name, childSizeHint);
42     }
43
44     @Override
45     public void startLeafSetEntryNode(final NodeWithValue<?> name) throws IOException {
46         delegate().startLeafSetEntryNode(name);
47     }
48
49     @Override
50     public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
51         delegate().startContainerNode(name, childSizeHint);
52     }
53
54     @Override
55     public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
56         delegate().startUnkeyedList(name, childSizeHint);
57     }
58
59     @Override
60     public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
61         delegate().startUnkeyedListItem(name, childSizeHint);
62     }
63
64     @Override
65     public void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
66         delegate().startMapNode(name, childSizeHint);
67     }
68
69     @Override
70     public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
71             throws IOException {
72         delegate().startMapEntryNode(identifier, childSizeHint);
73     }
74
75     @Override
76     public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
77         delegate().startOrderedMapNode(name, childSizeHint);
78     }
79
80     @Override
81     public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
82         delegate().startChoiceNode(name, childSizeHint);
83     }
84
85     @Override
86     public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
87         delegate().startAugmentationNode(identifier);
88     }
89
90     @Override
91     public boolean startAnyxmlNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
92         return delegate().startAnyxmlNode(name, objectModel);
93     }
94
95     @Override
96     public boolean startAnydataNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
97         return delegate().startAnydataNode(name, objectModel);
98     }
99
100     @Override
101     public void endNode() throws IOException {
102         delegate().endNode();
103     }
104
105     @Override
106     public void scalarValue(final Object value) throws IOException {
107         delegate().scalarValue(value);
108     }
109
110     @Override
111     public void domSourceValue(final DOMSource value) throws IOException {
112         delegate().domSourceValue(value);
113     }
114
115     @Override
116     public void close() throws IOException {
117         delegate().close();
118     }
119
120     @Override
121     public void flush() throws IOException {
122         delegate().flush();
123     }
124 }