Bug 3874: Support of yang modeled AnyXML - API
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / YangModeledAnyXmlSchemaNode.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.api;
9
10 import com.google.common.annotations.Beta;
11 import javax.annotation.Nonnull;
12
13 /**
14  * The "YangModeledAnyXml" interface defines an interior node in the schema tree. It takes
15  * one argument, which is an identifier represented by QName inherited from
16  * {@link SchemaNode}, followed by a block of substatements that holds detailed
17  * anyxml information. The substatements are defined in {@link DataSchemaNode}.
18  * The "YangModeledAnyXml" in contrast to the "AnyXml" interface can also provide schema
19  * of contained XML information. <br>
20  * <br>
21  * This interface was modeled according to definition in <a
22  * href="https://tools.ietf.org/html/rfc6020#section-7.10">[RFC-6020] The anyxml
23  * Statement</a>
24  *
25  *
26  */
27 @Beta
28 public interface YangModeledAnyXmlSchemaNode extends AnyXmlSchemaNode {
29
30     /**
31      * @return DataSchemaNode - schema of contained XML data
32      */
33     @Nonnull
34     ContainerSchemaNode getSchemaOfAnyXmlData();
35 }