- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.onosproject.yang.compiler.datamodel.YangLeafList.getDataType()
方法的一些代码示例,展示了YangLeafList.getDataType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangLeafList.getDataType()
方法的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangLeafList
类名称:YangLeafList
方法名:getDataType
[英]Returns the data type.
[中]返回数据类型。
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
@Override
public void isValueValid(String value)
throws DataModelException {
getDataType().isValidValue(value);
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
/**
* Adds the unresolved constructs to stack which has to be resolved for leafref.
*
* @param leavesInfo YANG leaf or leaf list which holds the type
* @param ancestorRefNode holder of the YANG leaf or leaf list
*/
private void addUnResolvedLeafRefTypeToStack(T leavesInfo, YangNode ancestorRefNode) {
YangType refType;
T extendedInfo;
if (leavesInfo instanceof YangLeaf) {
YangLeaf leaf = (YangLeaf) leavesInfo;
refType = leaf.getDataType();
} else {
YangLeafList leafList = (YangLeafList) leavesInfo;
refType = leafList.getDataType();
}
extendedInfo = (T) refType.getDataTypeExtendedInfo();
addUnResolvedTypeDataToStack(refType, ancestorRefNode, extendedInfo);
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
if (currentListOfLeafList != null) {
for (YangLeafList leafList : currentListOfLeafList) {
if (leafList.getDataType().getDataType() == ENUMERATION
|| leafList.getDataType().getDataType() == UNION) {
try {
YangType<?> clonedType = leafList.getDataType().clone();
updateClonedTypeRef(clonedType, leavesHolder);
leafList.setDataType(clonedType);
e.printStackTrace();
throw new DataModelException("Could not clone Type node " +
leafList.getDataType().getDataTypeName() + " in " +
leafList.getDataType().getLineNumber() + " at " +
leafList.getDataType().getCharPosition() +
" in " + leafList.getDataType().getFileName() + "\"");
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
/**
* Returns types that has to be resolved for a single leaf/leaf-list.
* Identifies the object to be leaf/leaf-list and assigns respective
* parameters to resolve the types under leaf/leaf-list.
*
* @param clonedObj leaf/leaf-list object
* @param holderNode holder node
* @param yangUses YANG uses
* @return list of resolvable entities in a leaf/leaf-list
* @throws DataModelException data model error
*/
private static List<YangEntityToResolveInfoImpl> getTypesToBeResolved(
Object clonedObj, YangNode holderNode,
YangUses yangUses) throws DataModelException {
YangType type;
if (clonedObj instanceof YangLeaf) {
YangLeaf clonedLeaf = (YangLeaf) clonedObj;
type = clonedLeaf.getDataType();
return getUnresolvedTypeList(type.getDataType(), type, holderNode,
yangUses, true);
}
YangLeafList clonedLeafList = (YangLeafList) clonedObj;
type = clonedLeafList.getDataType();
return getUnresolvedTypeList(type.getDataType(), type, holderNode,
yangUses, false);
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
} else if (getReferredLeafOrLeafList() instanceof YangLeafList) {
YangLeafList yangLeafList = ((YangLeafList) getReferredLeafOrLeafList());
YangType baseType = yangLeafList.getDataType();
YangLeafRef referredLeafRefInfo = (YangLeafRef) yangLeafList.getDataType().getDataTypeExtendedInfo();
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
YangType type = leafList.getDataType();
if (type.getDataType() == DERIVED) {
我在一个模型中有两个属性: 叶协议(protocol), 离开港口。 我想说明: 如果 protocol = 'ssh' 则默认端口值为 22, 如果 protocol = 'http' 则默认端口值
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.YangIde
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.YangIde
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.YangIde
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.ZeroBas
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patc
我是一名优秀的程序员,十分优秀!