9481500dddde1f9a5690d0c5eb19b448c0b69674
[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.ForwardingObject;
11 import java.io.IOException;
12 import java.util.Collection;
13 import javax.xml.transform.dom.DOMSource;
14 import org.eclipse.jdt.annotation.Nullable;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
16 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
17 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
18 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
19
20 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject
21         implements NormalizedNodeStreamWriter {
22     @Override
23     protected abstract NormalizedNodeStreamWriter delegate();
24
25     @Override
26     public <T extends Extension> @Nullable T extension(final Class<T> type) {
27         return delegate().extension(type);
28     }
29
30     @Override
31     public Collection<? extends Extension> supportedExtensions() {
32         return delegate().supportedExtensions();
33     }
34
35     @Override
36     public void startLeafNode(final NodeIdentifier name) throws IOException {
37         delegate().startLeafNode(name);
38     }
39
40     @Override
41     public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
42         delegate().startLeafSet(name, childSizeHint);
43     }
44
45     @Override
46     public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
47         delegate().startOrderedLeafSet(name, childSizeHint);
48     }
49
50     @Override
51     public void startLeafSetEntryNode(final NodeWithValue<?> name) throws IOException {
52         delegate().startLeafSetEntryNode(name);
53     }
54
55     @Override
56     public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
57         delegate().startContainerNode(name, childSizeHint);
58     }
59
60     @Override
61     public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
62         delegate().startUnkeyedList(name, childSizeHint);
63     }
64
65     @Override
66     public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
67         delegate().startUnkeyedListItem(name, childSizeHint);
68     }
69
70     @Override
71     public void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
72         delegate().startMapNode(name, childSizeHint);
73     }
74
75     @Override
76     public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
77             throws IOException {
78         delegate().startMapEntryNode(identifier, childSizeHint);
79     }
80
81     @Override
82     public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
83         delegate().startOrderedMapNode(name, childSizeHint);
84     }
85
86     @Override
87     public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
88         delegate().startChoiceNode(name, childSizeHint);
89     }
90
91     @Override
92     public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
93         delegate().startAugmentationNode(identifier);
94     }
95
96     @Override
97     public boolean startAnyxmlNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
98         return delegate().startAnyxmlNode(name, objectModel);
99     }
100
101     @Override
102     public boolean startAnydataNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
103         return delegate().startAnydataNode(name, objectModel);
104     }
105
106     @Override
107     public void endNode() throws IOException {
108         delegate().endNode();
109     }
110
111     @Override
112     public void scalarValue(final Object value) throws IOException {
113         delegate().scalarValue(value);
114     }
115
116     @Override
117     public void domSourceValue(final DOMSource value) throws IOException {
118         delegate().domSourceValue(value);
119     }
120
121     @Override
122     public void close() throws IOException {
123         delegate().close();
124     }
125
126     @Override
127     public void flush() throws IOException {
128         delegate().flush();
129     }
130 }