2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.mdsal.binding.javav2.dom.codec.impl.serializer;
10 import com.google.common.annotations.Beta;
11 import java.io.IOException;
12 import org.opendaylight.mdsal.binding.javav2.spec.base.IdentifiableItem;
13 import org.opendaylight.mdsal.binding.javav2.spec.base.Item;
14 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
15 import org.opendaylight.mdsal.binding.javav2.spec.runtime.BindingStreamEventWriter;
16 import org.opendaylight.mdsal.binding.javav2.spec.structural.Augmentation;
19 * Forwarding of event stream writer of Binding v2 representation.
22 abstract class ForwardingBindingStreamEventWriter implements BindingStreamEventWriter {
24 protected abstract BindingStreamEventWriter delegate();
27 public void startleafNode(final String localName, final Object value) throws IOException {
28 delegate().startleafNode(localName, value);
32 public void startLeafSet(final String localName, final int childSizeHint) throws IOException {
33 delegate().startLeafSet(localName, childSizeHint);
37 public void startOrderedLeafSet(final String localName, final int childSizeHint) throws IOException {
38 delegate().startOrderedLeafSet(localName, childSizeHint);
42 public void startleafSetEntryNode(final Object value) throws IOException {
43 delegate().startleafSetEntryNode(value);
47 public void startContainerNode(final Class<? extends TreeNode> container, final int childSizeHint)
49 delegate().startContainerNode(container, childSizeHint);
53 public void startUnkeyedList(final Class<? extends TreeNode> localName, final int childSizeHint)
55 delegate().startUnkeyedList(localName, childSizeHint);
59 public void startUnkeyedListItem(final int childSizeHint) throws IOException {
60 delegate().startUnkeyedListItem(childSizeHint);
64 public <I extends TreeNode, T> void startMapNode(final IdentifiableItem<I, T> mapEntryType, final int childSizeHint)
66 delegate().startMapNode(mapEntryType, childSizeHint);
70 public <I extends TreeNode, T> void startOrderedMapNode(final IdentifiableItem<I, T> mapEntryType,
71 final int childSizeHint) throws IOException {
72 delegate().startOrderedMapNode(mapEntryType, childSizeHint);
76 public <I extends TreeNode, T> void startMapEntryNode(final IdentifiableItem<I, T> keyValues,
77 final int childSizeHint) throws IOException {
78 delegate().startMapEntryNode(keyValues, childSizeHint);
82 public <T extends TreeNode> void startChoiceNode(final Item<T> choice, final int childSizeHint) throws IOException {
83 delegate().startChoiceNode(choice, childSizeHint);
87 public void startCase(final Class<? extends TreeNode> caze, final int childSizeHint) throws IOException {
88 delegate().startCase(caze, childSizeHint);
92 public void startAugmentationNode(final Class<? extends Augmentation<?>> augmentationType) throws IOException {
93 delegate().startAugmentationNode(augmentationType);
97 public void startAnyxmlNode(final String name, final Object value) throws IOException {
98 delegate().startAnyxmlNode(name, value);
102 public void startAnydataNode(final String name, final Object value) throws IOException {
103 delegate().startAnydataNode(name, value);
107 public void endNode() throws IOException {
108 delegate().endNode();
112 public void flush() throws IOException {
117 public void close() throws IOException {