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
17 implements NormalizedNodeStreamAttributeWriter {
19 protected abstract NormalizedNodeStreamAttributeWriter delegate();
22 public void leafNode(final NodeIdentifier name, final Object value, final Map<QName, String> attributes)
24 delegate().leafNode(name, value, attributes);
28 public void leafSetEntryNode(final QName name, final Object value, final Map<QName, String> attributes)
30 delegate().leafSetEntryNode(name, value, attributes);
34 public void startContainerNode(final NodeIdentifier name, final int childSizeHint,
35 final Map<QName, String> attributes) throws IOException {
36 delegate().startContainerNode(name, childSizeHint, attributes);
40 public void startYangModeledAnyXmlNode(final NodeIdentifier name, final int childSizeHint,
41 final Map<QName, String> attributes) throws IOException {
42 delegate().startYangModeledAnyXmlNode(name, childSizeHint, attributes);
46 public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint,
47 final Map<QName, String> attributes) throws IOException {
48 delegate().startUnkeyedListItem(name, childSizeHint, attributes);
52 public void startMapEntryNode(final NodeIdentifierWithPredicates identifier, final int childSizeHint,
53 final Map<QName, String> attributes) throws IOException {
54 delegate().startMapEntryNode(identifier, childSizeHint, attributes);