2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.api.schema.stream;
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;
19 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject
20 implements NormalizedNodeStreamWriter {
22 protected abstract NormalizedNodeStreamWriter delegate();
25 public ClassToInstanceMap<NormalizedNodeStreamWriterExtension> getExtensions() {
26 return delegate().getExtensions();
30 public void startLeafNode(final NodeIdentifier name) throws IOException {
31 delegate().startLeafNode(name);
35 public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
36 delegate().startLeafSet(name, childSizeHint);
40 public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
41 delegate().startOrderedLeafSet(name, childSizeHint);
45 public void startLeafSetEntryNode(final NodeWithValue<?> name) throws IOException {
46 delegate().startLeafSetEntryNode(name);
50 public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
51 delegate().startContainerNode(name, childSizeHint);
55 public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
56 delegate().startUnkeyedList(name, childSizeHint);
60 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
61 delegate().startUnkeyedListItem(name, childSizeHint);
65 public void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
66 delegate().startMapNode(name, childSizeHint);
70 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
72 delegate().startMapEntryNode(identifier, childSizeHint);
76 public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
77 delegate().startOrderedMapNode(name, childSizeHint);
81 public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
82 delegate().startChoiceNode(name, childSizeHint);
86 public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
87 delegate().startAugmentationNode(identifier);
91 public void startAnyxmlNode(final NodeIdentifier name) throws IOException {
92 delegate().startAnyxmlNode(name);
96 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
97 delegate().startYangModeledAnyXmlNode(name, childSizeHint);
101 public boolean startAnydataNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
102 return delegate().startAnydataNode(name, objectModel);
106 public void endNode() throws IOException {
107 delegate().endNode();
111 public void scalarValue(final Object value) throws IOException {
112 delegate().scalarValue(value);
116 public void domSourceValue(final DOMSource value) throws IOException {
117 delegate().domSourceValue(value);
121 public void close() throws IOException {
126 public void flush() throws IOException {