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 org.opendaylight.yangtools.yang.common.QName;
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;
18 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject
19 implements NormalizedNodeStreamWriter {
21 protected abstract NormalizedNodeStreamWriter delegate();
24 public ClassToInstanceMap<NormalizedNodeStreamWriterExtension> getExtensions() {
25 return delegate().getExtensions();
29 public void leafNode(final NodeIdentifier name, final Object value) throws IOException {
30 delegate().leafNode(name, value);
34 public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
35 delegate().startLeafSet(name, childSizeHint);
39 public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
40 delegate().startOrderedLeafSet(name, childSizeHint);
44 public void leafSetEntryNode(final QName name, final Object value) throws IOException {
45 delegate().leafSetEntryNode(name, value);
49 public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
50 delegate().startContainerNode(name, childSizeHint);
54 public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
55 delegate().startUnkeyedList(name, childSizeHint);
59 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
60 delegate().startUnkeyedListItem(name, childSizeHint);
64 public void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
65 delegate().startMapNode(name, childSizeHint);
69 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
71 delegate().startMapEntryNode(identifier, childSizeHint);
75 public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
76 delegate().startOrderedMapNode(name, childSizeHint);
80 public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
81 delegate().startChoiceNode(name, childSizeHint);
85 public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
86 delegate().startAugmentationNode(identifier);
90 public void anyxmlNode(final NodeIdentifier name, final Object value) throws IOException {
91 delegate().anyxmlNode(name, value);
95 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
96 delegate().startYangModeledAnyXmlNode(name, childSizeHint);
100 public void endNode() throws IOException {
101 delegate().endNode();
105 public void close() throws IOException {
110 public void flush() throws IOException {