本文整理了Java中org.onosproject.yangutils.datamodel.YangEnumeration.getEnumSet()
方法的一些代码示例,展示了YangEnumeration.getEnumSet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangEnumeration.getEnumSet()
方法的具体详情如下:
包路径:org.onosproject.yangutils.datamodel.YangEnumeration
类名称:YangEnumeration
方法名:getEnumSet
[英]Returns the ENUM set.
[中]
代码示例来源:origin: org.onosproject/onos-yang-datamodel
/**
* Adds ENUM information.
*
* @param enumInfo the ENUM information to be added
* @throws DataModelException due to violation in data model rules
*/
public void addEnumInfo(YangEnum enumInfo)
throws DataModelException {
if (!getEnumSet().add(enumInfo)) {
throw new DataModelException("YANG ENUM already exists " +
getName() + " in " +
getLineNumber() + " at " +
getCharPosition() +
" in " + getFileName() + "\"");
}
}
代码示例来源:origin: org.onosproject/onos-yang-utils-parser
case ENUMERATION_DATA: {
YangEnumeration yangEnumeration = (YangEnumeration) tmpNode;
for (YangEnum curEnum : yangEnumeration.getEnumSet()) {
if (value == curEnum.getValue()) {
listener.getParsedDataStack().push(enumNode);
代码示例来源:origin: org.onosproject/onos-yang-datamodel
Iterator<YangEnum> iterator = ((YangEnumeration) getDataTypeExtendedInfo()).getEnumSet().iterator();
boolean isValidated = false;
while (iterator.hasNext()) {
代码示例来源:origin: org.onosproject/onos-yang-utils-parser
boolean isValuePresent = false;
for (YangEnum curEnum : yangEnumeration.getEnumSet()) {
if (curEnum.getValue() == Integer.MAX_VALUE) {
ParserException parserException = new ParserException("YANG file error : "
内容来源于网络,如有侵权,请联系作者删除!