2 * Copyright (c) 2014 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;
10 import org.opendaylight.yangtools.yang.data.api.AttributesContainer;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.Node;
15 * Anyxml normalizedNode.
18 * This node contains values for anyxml as either SimpleNode or CompositeNode.
19 * The concrete value depends on the current value of anyxml node.
23 * For yang node: anyxml foo;
29 * {@code <foo>justSomeString</foo>}
33 * this AnyXmlNode returns SimpleNode with QName{namespace=someNamespace, revision=someRevision, localName=foo} and value="justSomeString"
38 * {@code <foo><bar>stringInXml</bar></foo>}
42 * this AnyXmlNode returns CompositeNode with QName{}namespace=someNamespace, revision=someRevision, localName=foo}
43 * and values [SimpleNode with QName{}namespace=someNamespace, revision=someRevision, localName=bar} and value="stringInXml"]
47 public interface AnyXmlNode extends AttributesContainer, DataContainerChild<NodeIdentifier, Node<?>> {
50 NodeIdentifier getIdentifier();
53 * @return anyxml node value represented as SimpleNode or CompositeNode.
54 * Returned node contains top level element that duplicates the anyxml node.