public static boolean hasIBAAttributeInObjType(Object obj, String ibaName){
boolean hasIBA = false ;
try {
TypeIdentifier typeIdentifier = TypedUtilityServiceHelper.service.getTypeIdentifier(obj);
AttributeTypeIdentifier[] attrTypeIdentifier = TypeInstanceHelper.getSoftAttributeTypeIdentifiers(typeIdentifier);
Set<String> ibaNameSet = new HashSet<String>();
for(int i=0,size=attrTypeIdentifier.length;i<size;i++){
ibaNameSet.add(attrTypeIdentifier[i].getAttributeName());
}
if(ibaNameSet.contains(ibaName)){
hasIBA=true;
}
} catch (WTException e) {
}
return hasIBA;
}
判断指定对象的类型中是否具有指定的IBA属性
最新推荐文章于 2025-08-19 13:44:52 发布
本文介绍了一个方法,用于检查特定类型的对象是否包含指定的IBA属性。通过获取对象类型标识符并检索其软属性类型标识符来实现。最终通过比较属性名称集合来判断目标属性是否存在。
1205

被折叠的 条评论
为什么被折叠?



