/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.data.api.schema.stream; import com.google.common.collect.ForwardingObject; import java.io.IOException; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates; public abstract class ForwardingNormalizedNodeStreamWriter extends ForwardingObject implements NormalizedNodeStreamWriter { @Override protected abstract NormalizedNodeStreamWriter delegate(); @Override public void leafNode(final NodeIdentifier name, final Object value) throws IOException { delegate().leafNode(name, value); } @Override public void startLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startLeafSet(name, childSizeHint); } @Override public void startOrderedLeafSet(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startOrderedLeafSet(name, childSizeHint); } @Override public void leafSetEntryNode(final QName name, final Object value) throws IOException { delegate().leafSetEntryNode(name, value); } @Override public void startContainerNode(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startContainerNode(name, childSizeHint); } @Override public void startUnkeyedList(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startUnkeyedList(name, childSizeHint); } @Override public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startUnkeyedListItem(name, childSizeHint); } @Override public final void startMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startMapNode(name, childSizeHint); } @Override public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint) throws IOException { delegate().startMapEntryNode(identifier, childSizeHint); } @Override public void startOrderedMapNode(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startOrderedMapNode(name, childSizeHint); } @Override public void startChoiceNode(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startChoiceNode(name, childSizeHint); } @Override public void startAugmentationNode(final AugmentationIdentifier identifier) throws IOException { delegate().startAugmentationNode(identifier); } @Override public void anyxmlNode(final NodeIdentifier name, final Object value) throws IOException { delegate().anyxmlNode(name, value); } @Override public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint) throws IOException { delegate().startYangModeledAnyXmlNode(name, childSizeHint); } @Override public void endNode() throws IOException { delegate().endNode(); } @Override public void close() throws IOException { delegate().close(); } @Override public void flush() throws IOException { delegate().flush(); } }