本文整理了Java中org.onosproject.yang.compiler.datamodel.YangUses.getName()
方法的一些代码示例,展示了YangUses.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangUses.getName()
方法的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangUses
类名称:YangUses
方法名: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(
getErrorMsgCollision(COLLISION_DETECTION, getName(),
getLineNumber(), getCharPosition(),
USES, getFileName()));
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
/**
* Finds the referred grouping node at the root level of imported/included node.
*
* @param refNode module/sub-module node
* @return referred grouping
*/
private YangNode findRefGrouping(YangNode refNode) {
YangNode tmpNode = refNode.getChild();
while (tmpNode != null) {
if (tmpNode instanceof YangGrouping) {
if (tmpNode.getName()
.equals(((YangUses) getCurEntityToResolveFromStack())
.getName())) {
return tmpNode;
}
}
tmpNode = tmpNode.getNextSibling();
}
return null;
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
return node.getName().contentEquals(((YangUses) entity).getName());
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
" uses " + getName() + " in " +
getLineNumber() + " at " +
getCharPosition() + " in " +
|| !(usesParentNode instanceof CollisionDetector)) {
throw new DataModelException(
"YANG uses holder construct is wrong " + getName() + " in " +
getLineNumber() + " at " + getCharPosition() +
" in " + getFileName() + "\"");
内容来源于网络,如有侵权,请联系作者删除!