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.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;
20 public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject
21 implements NormalizedNodeStreamWriter {
23 protected abstract NormalizedNodeStreamWriter delegate();
26 public <T extends Extension> @Nullable T extension(final Class<T> type) {
27 return delegate().extension(type);
31 public Collection<? extends Extension> supportedExtensions() {
32 return delegate().supportedExtensions();
36 public void startLeafNode(final NodeIdentifier name) throws IOException {
37 delegate().startLeafNode(name);
41 public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
42 delegate().startLeafSet(name, childSizeHint);
46 public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException {
47 delegate().startOrderedLeafSet(name, childSizeHint);
51 public void startLeafSetEntryNode(final NodeWithValue<?> name) throws IOException {
52 delegate().startLeafSetEntryNode(name);
56 public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
57 delegate().startContainerNode(name, childSizeHint);
61 public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException {
62 delegate().startUnkeyedList(name, childSizeHint);
66 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException {
67 delegate().startUnkeyedListItem(name, childSizeHint);
71 public void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
72 delegate().startMapNode(name, childSizeHint);
76 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint)
78 delegate().startMapEntryNode(identifier, childSizeHint);
82 public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
83 delegate().startOrderedMapNode(name, childSizeHint);
87 public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException {
88 delegate().startChoiceNode(name, childSizeHint);
92 public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException {
93 delegate().startAugmentationNode(identifier);
97 public boolean startAnyxmlNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
98 return delegate().startAnyxmlNode(name, objectModel);
102 public boolean startAnydataNode(final NodeIdentifier name, final Class<?> objectModel) throws IOException {
103 return delegate().startAnydataNode(name, objectModel);
107 public void endNode() throws IOException {
108 delegate().endNode();
112 public void scalarValue(final Object value) throws IOException {
113 delegate().scalarValue(value);
117 public void domSourceValue(final DOMSource value) throws IOException {
118 delegate().domSourceValue(value);
122 public void close() throws IOException {
127 public void flush() throws IOException {