本文整理了Java中org.opendaylight.yangtools.odlext.model.api.YangModeledAnyXmlSchemaNode
类的一些代码示例,展示了YangModeledAnyXmlSchemaNode
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangModeledAnyXmlSchemaNode
类的具体详情如下:
包路径:org.opendaylight.yangtools.odlext.model.api.YangModeledAnyXmlSchemaNode
类名称:YangModeledAnyXmlSchemaNode
[英]The "YangModeledAnyXml" interface defines an interior node in the schema tree. It takes one argument, which is an identifier represented by QName inherited from SchemaNode, followed by a block of substatements that holds detailed anyxml information. The substatements are defined in DataSchemaNode. The "YangModeledAnyXml" in contrast to the "AnyXml" interface can also provide schema of contained XML information.
This interface was modeled according to definition in [RFC-6020] The anyxml Statement
[中]“YangModeledAnyXml”接口在模式树中定义了一个内部节点。它使用一个参数,这是一个由从SchemaAnode继承的QName表示的标识符,后跟一个包含详细的anyxml信息的子语句块。子状态在DataSchemaNode中定义。与“AnyXml”接口相比,“YangModeledAnyXml”还可以提供包含XML信息的模式。
这个接口是根据[RFC-6020] The anyxml Statement中的定义建模的
代码示例来源:origin: opendaylight/yangtools
private ImmutableYangModeledAnyXmlNodeBuilder(final YangModeledAnyXmlSchemaNode yangModeledAnyXMLSchemaNode,
final int sizeHint) {
super(sizeHint);
requireNonNull(yangModeledAnyXMLSchemaNode, "Yang modeled any xml node must not be null.");
super.withNodeIdentifier(NodeIdentifier.create(yangModeledAnyXMLSchemaNode.getQName()));
this.contentSchema = yangModeledAnyXMLSchemaNode.getSchemaOfAnyXmlData();
}
代码示例来源:origin: org.opendaylight.yangtools/yang-data-impl
public SchemaNode startYangModeledAnyXmlNode(final NodeIdentifier name) {
LOG.debug("Enter yang modeled anyXml {}", name);
final SchemaNode schema = getSchema(name);
checkArgument(schema instanceof YangModeledAnyXmlSchemaNode, "Node %s is not an yang modeled anyXml.",
schema.getPath());
schemaStack.push(((YangModeledAnyXmlSchemaNode) schema).getSchemaOfAnyXmlData());
return schema;
}
代码示例来源:origin: opendaylight/yangtools
public SchemaNode startYangModeledAnyXmlNode(final NodeIdentifier name) {
LOG.debug("Enter yang modeled anyXml {}", name);
final SchemaNode schema = getSchema(name);
checkArgument(schema instanceof YangModeledAnyXmlSchemaNode, "Node %s is not an yang modeled anyXml.",
schema.getPath());
schemaStack.push(((YangModeledAnyXmlSchemaNode) schema).getSchemaOfAnyXmlData());
return schema;
}
代码示例来源:origin: org.opendaylight.yangtools/yang-data-impl
private ImmutableYangModeledAnyXmlNodeBuilder(final YangModeledAnyXmlSchemaNode yangModeledAnyXMLSchemaNode) {
requireNonNull(yangModeledAnyXMLSchemaNode, "Yang modeled any xml node must not be null.");
super.withNodeIdentifier(NodeIdentifier.create(yangModeledAnyXMLSchemaNode.getQName()));
this.contentSchema = yangModeledAnyXMLSchemaNode.getSchemaOfAnyXmlData();
}
代码示例来源:origin: opendaylight/yangtools
parentSchema = ((YangModeledAnyXmlSchemaNode) parentSchema).getSchemaOfAnyXmlData();
代码示例来源:origin: org.opendaylight.yangtools/yang-data-impl
private ImmutableYangModeledAnyXmlNodeBuilder(final YangModeledAnyXmlSchemaNode yangModeledAnyXMLSchemaNode,
final int sizeHint) {
super(sizeHint);
requireNonNull(yangModeledAnyXMLSchemaNode, "Yang modeled any xml node must not be null.");
super.withNodeIdentifier(NodeIdentifier.create(yangModeledAnyXMLSchemaNode.getQName()));
this.contentSchema = yangModeledAnyXMLSchemaNode.getSchemaOfAnyXmlData();
}
代码示例来源:origin: org.opendaylight.yangtools/yang-data-codec-gson
DataSchemaNode parentSchema = parent.getSchema();
if (parentSchema instanceof YangModeledAnyXmlSchemaNode) {
parentSchema = ((YangModeledAnyXmlSchemaNode) parentSchema).getSchemaOfAnyXmlData();
代码示例来源:origin: opendaylight/yangtools
private ImmutableYangModeledAnyXmlNodeBuilder(final YangModeledAnyXmlSchemaNode yangModeledAnyXMLSchemaNode) {
requireNonNull(yangModeledAnyXMLSchemaNode, "Yang modeled any xml node must not be null.");
super.withNodeIdentifier(NodeIdentifier.create(yangModeledAnyXMLSchemaNode.getQName()));
this.contentSchema = yangModeledAnyXMLSchemaNode.getSchemaOfAnyXmlData();
}
代码示例来源:origin: opendaylight/yangtools
DataSchemaNode parentSchema = parent.getSchema();
if (parentSchema instanceof YangModeledAnyXmlSchemaNode) {
parentSchema = ((YangModeledAnyXmlSchemaNode) parentSchema).getSchemaOfAnyXmlData();
内容来源于网络,如有侵权,请联系作者删除!