Bug 5019: Add QName param to NormalizedNodeWriter#leafSetEntryNode
[yangtools.git] / yang / 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 org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
16
17 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject implements NormalizedNodeStreamWriter {
18     @Override
19     protected abstract NormalizedNodeStreamWriter delegate();
20
21     @Override
22     public void leafNode(final NodeIdentifier name, final Object value) throws IOException {
23         delegate().leafNode(name, value);
24     }
25
26     @Override
27     public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
28         delegate().startLeafSet(name, childSizeHint);
29     }
30
31     @Override
32     public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
33         delegate().startOrderedLeafSet(name, childSizeHint);
34     }
35
36     @Override
37     public void leafSetEntryNode(final QName name, final Object value) throws IOException {
38         delegate().leafSetEntryNode(name, value);
39     }
40
41     @Override
42     public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
43         delegate().startContainerNode(name, childSizeHint);
44     }
45
46     @Override
47     public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
48         delegate().startUnkeyedList(name, childSizeHint);
49     }
50
51     @Override
52     public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
53         delegate().startUnkeyedListItem(name, childSizeHint);
54     }
55
56     @Override
57     public final void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
58         delegate().startMapNode(name, childSizeHint);
59     }
60
61     @Override
62     public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
63             throws IOException {
64         delegate().startMapEntryNode(identifier, childSizeHint);
65     }
66
67     @Override
68     public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
69         delegate().startOrderedMapNode(name, childSizeHint);
70     }
71
72     @Override
73     public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
74         delegate().startChoiceNode(name, childSizeHint);
75     }
76
77     @Override
78     public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
79         delegate().startAugmentationNode(identifier);
80     }
81
82     @Override
83     public void anyxmlNode(final NodeIdentifier name, final Object value) throws IOException {
84         delegate().anyxmlNode(name, value);
85     }
86
87     @Override
88     public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
89         delegate().startYangModeledAnyXmlNode(name, childSizeHint);
90     }
91
92     @Override
93     public void endNode() throws IOException {
94         delegate().endNode();
95     }
96
97     @Override
98     public void close() throws IOException {
99         delegate().close();
100     }
101
102     @Override
103     public void flush() throws IOException {
104         delegate().flush();
105     }
106 }