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 java.io.IOException;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
16 public abstract class ForwardingNormalizedNodeStreamAttributeWriter extends ForwardingNormalizedNodeStreamWriter implements NormalizedNodeStreamAttributeWriter {
18 protected abstract NormalizedNodeStreamAttributeWriter delegate();
21 public void leafNode(final NodeIdentifier name, final Object value, final Map<QName, String> attributes)
23 delegate().leafNode(name, value, attributes);
27 public void leafSetEntryNode(final QName name, final Object value, final Map<QName, String> attributes) throws IOException {
28 delegate().leafSetEntryNode(name, value, attributes);
32 public void startContainerNode(final NodeIdentifier name, final int childSizeHint,
33 final Map<QName, String> attributes) throws IOException {
34 delegate().startContainerNode(name, childSizeHint, attributes);
38 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint,
39 final Map<QName, String> attributes) throws IOException {
40 delegate().startYangModeledAnyXmlNode(name, childSizeHint, attributes);
44 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint,
45 final Map<QName, String> attributes) throws IOException {
46 delegate().startUnkeyedListItem(name, childSizeHint, attributes);
50 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint,
51 final Map<QName, String> attributes) throws IOException {
52 delegate().startMapEntryNode(identifier, childSizeHint, attributes);