- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.onosproject.yang.compiler.datamodel.YangAugment.getName()
方法的一些代码示例,展示了YangAugment.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangAugment.getName()
方法的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangAugment
类名称:YangAugment
方法名:getName
暂无
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
@Override
public void detectSelfCollision(String identifierName,
YangConstructType dataType)
throws DataModelException {
if (getName().equals(identifierName)) {
throw new DataModelException(
"YANG file error: Duplicate input identifier detected, " +
"same as input \"" +
getName() + " in " +
getLineNumber() + " at " +
getCharPosition() +
" in " + getFileName() + "\"");
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
/**
* Checks for the augment name name collision. If there are augments with
* the same name present, then the new augment will be set with a logical
* node.
*
* @param root augment parent node
* @param aug YANG augment node
*/
public static void checkAugNameCollision(YangNode root, YangAugment aug) {
YangNode child = root.getChild();
while (child != null) {
if (child instanceof YangAugment) {
if (child.getName().equals(aug.getName())) {
aug.setLogicalNode((YangAugment) child);
}
}
child = child.getNextSibling();
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
/**
* Removes the duplicate YANG augment from the data tree by detaching it
* from its parent and from its sibling.
*
* @param augment duplicate YANG augment
*/
public static void removeAugment(YangAugment augment) {
YangNode root = augment.getParent();
YangNode child = root.getChild();
YangNode pSib = null;
if (child == null) {
throw new ParserException("The root node of augment " + augment
.getName() + " must have atleast one child");
}
while (child != null) {
if (child == augment) {
if (pSib == null) {
root.setChild(null);
} else {
pSib.setNextSibling(null);
}
}
pSib = child;
child = child.getNextSibling();
}
augment = new YangJavaAugmentTranslator();
augment = null;
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
constructExtendedListenerErrorMessage(
UNHANDLED_PARSED_DATA, AUGMENT_DATA,
augment.getName(), ENTRY, e.getMessage()));
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
getErrorMsg(FAILED_TO_ADD_CASE, augment.getName(),
augment.getLineNumber(), augment.getCharPosition(),
augment.getFileName()));
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
private void resolveUsesAugment(T entity, YangNode node) {
YangXpathLinker<T> linker = new YangXpathLinker<T>();
YangAugment aug = (YangAugment) entity;
YangNode tgt = linker.processUsesAugLinking(aug.getTargetNode(),
(YangUses) node);
if (tgt != null) {
if (tgt instanceof YangAugmentableNode) {
//TODO: collision detection
((YangAugmentableNode) tgt).addAugmentation(aug);
aug.setAugmentedNode(tgt);
setAugmentedFlagInAncestors(tgt);
Resolvable resolvable = (Resolvable) entity;
resolvable.setResolvableStatus(RESOLVED);
if (tgt instanceof YangInput) {
linker.addInModuleIfInput(aug, node);
}
} else {
throw new LinkerException(getErrorMsg(
INVALID_TARGET + tgt.getNodeType(),
aug.getName(), aug.getLineNumber(),
aug.getCharPosition(), aug.getFileName()));
}
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
throw new LinkerException(getErrorMsg(
INVALID_TARGET + targetNode.getNodeType(),
augment.getName(), augment.getLineNumber(),
augment.getCharPosition(), augment.getFileName()));
FAILED_TO_LINK, augment.getName(), augment
.getLineNumber(), augment.getCharPosition(),
augment.getFileName()));
本文整理了Java中org.onosproject.yangutils.datamodel.YangReferenceResolver类的一些代码示例,展示了YangReferenceResolver
本文整理了Java中org.onosproject.yangutils.datamodel.YangNode类的一些代码示例,展示了YangNode类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.onosproject.yangutils.datamodel.YangUnion类的一些代码示例,展示了YangUnion类的具体用法。这些代码示例主要来源于Github
本文整理了Java中org.onosproject.yangutils.datamodel.YangTypeDef类的一些代码示例,展示了YangTypeDef类的具体用法。这些代码示例主要来源于Gi
本文整理了Java中org.onosproject.yangutils.datamodel.YangType类的一些代码示例,展示了YangType类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.onosproject.yangutils.datamodel.YangSubModule类的一些代码示例,展示了YangSubModule类的具体用法。这些代码示例主要来
本文整理了Java中org.onosproject.yangutils.datamodel.YangRevision类的一些代码示例,展示了YangRevision类的具体用法。这些代码示例主要来源于
本文整理了Java中org.onosproject.yangutils.datamodel.YangRpc类的一些代码示例,展示了YangRpc类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中org.onosproject.yangutils.datamodel.YangPatternRestriction类的一些代码示例,展示了YangPatternRestricti
本文整理了Java中org.onosproject.yangutils.datamodel.YangStringRestriction类的一些代码示例,展示了YangStringRestriction
本文整理了Java中org.onosproject.yangutils.datamodel.YangFeature类的一些代码示例,展示了YangFeature类的具体用法。这些代码示例主要来源于Gi
本文整理了Java中org.onosproject.yangutils.datamodel.YangLeafRef类的一些代码示例,展示了YangLeafRef类的具体用法。这些代码示例主要来源于Gi
本文整理了Java中org.onosproject.yangutils.datamodel.YangLeafList类的一些代码示例,展示了YangLeafList类的具体用法。这些代码示例主要来源于
本文整理了Java中org.onosproject.yangutils.datamodel.YangLeaf类的一些代码示例,展示了YangLeaf类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.onosproject.yangutils.datamodel.YangList类的一些代码示例,展示了YangList类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.onosproject.yangutils.datamodel.YangNodeIdentifier类的一些代码示例,展示了YangNodeIdentifier类的具体用法
本文整理了Java中org.onosproject.yangutils.datamodel.YangAugment类的一些代码示例,展示了YangAugment类的具体用法。这些代码示例主要来源于Gi
本文整理了Java中org.onosproject.yangutils.datamodel.YangCase类的一些代码示例,展示了YangCase类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.onosproject.yangutils.datamodel.YangAtomicPath类的一些代码示例,展示了YangAtomicPath类的具体用法。这些代码示例主
本文整理了Java中org.onosproject.yangutils.datamodel.YangEnumeration类的一些代码示例,展示了YangEnumeration类的具体用法。这些代码示
我是一名优秀的程序员,十分优秀!