- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.onosproject.yang.compiler.datamodel.YangLeaf.getDataType()
方法的一些代码示例,展示了YangLeaf.getDataType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangLeaf.getDataType()
方法的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangLeaf
类名称:YangLeaf
方法名: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 (currentListOfLeaves != null) {
for (YangLeaf leaf : currentListOfLeaves) {
if (leaf.getDataType().getDataType() == ENUMERATION
|| leaf.getDataType().getDataType() == UNION) {
try {
YangType<?> clonedType = leaf.getDataType().clone();
updateClonedTypeRef(clonedType, leavesHolder);
leaf.setDataType(clonedType);
log.error("Error in cloning", e);
throw new DataModelException("Could not clone Type node " +
leaf.getDataType().getDataTypeName() + " in " +
leaf.getDataType().getLineNumber() + " at " +
leaf.getDataType().getCharPosition() +
" in " + leaf.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
for (YangLeaf leaf : leaves) {
if (key.equals(leaf.getName())) {
if (leaf.getDataType().getDataType() == EMPTY) {
throw new DataModelException(" A leaf that is part of the key must not be the built-in " +
"type \"empty\"." +
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
YangType baseType = yangLeaf.getDataType();
YangLeafRef referredLeafRefInfo = (YangLeafRef) (yangLeaf.getDataType().getDataTypeExtendedInfo());
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
if (leavesHolder.getListOfLeaf() != null && !leavesHolder.getListOfLeaf().isEmpty()) {
for (YangLeaf leaf : leavesHolder.getListOfLeaf()) {
YangType type = leaf.getDataType();
if (type.getDataType() == DERIVED) {
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclAttribute.getDataType()方法的一些代码示例,展示了ZclAttribute.getDataTy
本文整理了Java中org.onosproject.yangutils.datamodel.YangType.getDataType()方法的一些代码示例,展示了YangType.getDataTyp
本文整理了Java中org.onosproject.yang.compiler.datamodel.YangLeafList.getDataType()方法的一些代码示例,展示了YangLeafLis
本文整理了Java中org.onosproject.yang.compiler.datamodel.YangType.getDataType()方法的一些代码示例,展示了YangType.getDat
本文整理了Java中org.onosproject.yang.compiler.datamodel.YangLeaf.getDataType()方法的一些代码示例,展示了YangLeaf.getDat
本文整理了Java中org.apache.phoenix.expression.function.YearFunction.getDataType()方法的一些代码示例,展示了YearFunction
我是一名优秀的程序员,十分优秀!