- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.onosproject.yangutils.datamodel.YangNodeIdentifier
类的一些代码示例,展示了YangNodeIdentifier
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangNodeIdentifier
类的具体详情如下:
包路径:org.onosproject.yangutils.datamodel.YangNodeIdentifier
类名称:YangNodeIdentifier
[英]Represents YANG node identifier which is a combination of prefix and name.
[中]表示节点标识符,它是前缀和名称的组合。
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Resets the class attributes to its default value.
*/
public void resetYangType() {
nodeId = new YangNodeIdentifier();
resolvableStatus = UNRESOLVED;
dataType = null;
dataTypeExtendedInfo = null;
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
@Override
public String getName() {
return nodeIdentifier.getName();
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Returns prefix associated with uses.
*
* @return prefix associated with uses
*/
public String getPrefix() {
return nodeIdentifier.getPrefix();
}
代码示例来源:origin: org.onosproject/onos-yang-utils-parser
/**
* Checks and return valid node identifier.
*
* @param nodeIdentifierString string from yang file
* @param yangConstruct yang construct for creating error message
* @param ctx yang construct's context to get the line number and character position
* @return valid node identifier
*/
public static YangNodeIdentifier getValidNodeIdentifier(String nodeIdentifierString,
YangConstructType yangConstruct, ParserRuleContext ctx) {
String tmpIdentifierString = removeQuotesAndHandleConcat(nodeIdentifierString);
String[] tmpData = tmpIdentifierString.split(Pattern.quote(COLON));
if (tmpData.length == 1) {
YangNodeIdentifier nodeIdentifier = new YangNodeIdentifier();
nodeIdentifier.setName(getValidIdentifier(tmpData[0], yangConstruct, ctx));
return nodeIdentifier;
} else if (tmpData.length == 2) {
YangNodeIdentifier nodeIdentifier = new YangNodeIdentifier();
nodeIdentifier.setPrefix(getValidIdentifier(tmpData[0], yangConstruct, ctx));
nodeIdentifier.setName(getValidIdentifier(tmpData[1], yangConstruct, ctx));
return nodeIdentifier;
} else {
ParserException parserException = new ParserException("YANG file error : " +
getYangConstructType(yangConstruct) + " name " + nodeIdentifierString +
" is not valid.");
parserException.setLine(ctx.getStart().getLine());
parserException.setCharPosition(ctx.getStart().getCharPositionInLine());
throw parserException;
}
}
代码示例来源:origin: org.onosproject/onos-yang-utils-parser
/**
* Returns the augment name, after removing the prefix, in each atomic
* content, which is equal to the root prefix.
*
* @param atomics atomic content list
* @param root root node
* @return prefix removed augment name
*/
public static String getPrefixRemovedName(List<YangAtomicPath> atomics,
YangNode root) {
String rootPrefix = getRootPrefix(root);
StringBuilder builder = new StringBuilder();
for (YangAtomicPath atomic : atomics) {
String id;
String prefix = atomic.getNodeIdentifier().getPrefix();
String name = atomic.getNodeIdentifier().getName();
if (rootPrefix.equals(prefix) || prefix == null) {
id = SLASH_FOR_STRING + name;
} else {
id = SLASH_FOR_STRING + prefix + COLON + name;
}
builder.append(id);
}
return builder.toString();
}
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Sets prefix associated with identifier.
*
* @param prefix prefix associated with identifier
*/
public void setPrefix(String prefix) {
name.setPrefix(prefix);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Sets the name of the data type.
*
* @param typeName the name to set
*/
public void setDataTypeName(String typeName) {
nodeId.setName(typeName);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Sets prefix associated with base.
*
* @param prefix prefix associated with base
*/
public void setPrefix(String prefix) {
baseIdentity.setPrefix(prefix);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Sets the name of identity.
*
* @param name the identity name to set
*/
@Override
public void setName(String name) {
baseIdentity.setName(name);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Returns prefix associated with identifier.
*
* @return prefix associated with identifier
*/
public String getPrefix() {
return name.getPrefix();
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Get prefix associated with uses.
*
* @param prefix prefix associated with uses
*/
public void setPrefix(String prefix) {
nodeIdentifier.setPrefix(prefix);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Returns the name of data type.
*
* @return the name of data type
*/
public String getDataTypeName() {
return nodeId.getName();
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
public YangIdentityRef() {
super(YangNodeType.IDENTITYREF_NODE, null);
baseIdentity = new YangNodeIdentifier();
resolvableStatus = ResolvableStatus.UNRESOLVED;
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
@Override
public void setName(String name) {
nodeIdentifier.setName(name);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Returns prefix associated with data type name.
*
* @return prefix associated with data type name
*/
public String getPrefix() {
return nodeId.getPrefix();
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Sets prefix associated with data type name.
*
* @param prefix prefix associated with data type name
*/
public void setPrefix(String prefix) {
nodeId.setPrefix(prefix);
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Returns the name of identity.
*
* @return the identity name
*/
@Override
public String getName() {
return baseIdentity.getName();
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Creates a YANG type object.
*/
public YangType() {
nodeId = new YangNodeIdentifier();
resolvableStatus = UNRESOLVED;
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Returns prefix associated with base.
*
* @return prefix associated with base
*/
public String getPrefix() {
return baseIdentity.getPrefix();
}
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Assigns leafref with new prefixes while cloning.
*
* @param importedNodeName imported node name from grouping
* @param atomicPath atomic path in leafref
* @param node instance of YANG uses where cloning is done
* @throws DataModelException data model error
*/
private static void assignCurrentLeafedWithNewPrefixes(String importedNodeName, YangAtomicPath atomicPath,
YangNode node)
throws DataModelException {
while (!(node instanceof YangReferenceResolver)) {
node = node.getParent();
if (node == null) {
throw new DataModelException("Internal datamodel error: Datamodel tree is not correct");
}
}
if (node instanceof YangModule) {
List<YangImport> importInUsesList = ((YangModule) node).getImportList();
if (importInUsesList != null && !importInUsesList.isEmpty()) {
Iterator<YangImport> importInUsesListIterator = importInUsesList.listIterator();
while (importInUsesListIterator.hasNext()) {
YangImport importInUsesNode = importInUsesListIterator.next();
if (importInUsesNode.getModuleName().equals(importedNodeName)) {
atomicPath.getNodeIdentifier().setPrefix(importInUsesNode.getPrefixId());
}
}
}
}
}
本文整理了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类的具体用法。这些代码示
我是一名优秀的程序员,十分优秀!