本文整理了Java中org.apache.isis.applib.Identifier.isPropertyOrCollection()
方法的一些代码示例,展示了Identifier.isPropertyOrCollection()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.isPropertyOrCollection()
方法的具体详情如下:
包路径:org.apache.isis.applib.Identifier
类名称:Identifier
方法名:isPropertyOrCollection
[英]Convenience method.
[中]方便方法。
代码示例来源:origin: org.apache.isis.core/progmodel
private static List<String> buildMemberTypeKey(final Identifier identifier, final String textType) {
final List<String> keys = Lists.newArrayList();
if (identifier.isPropertyOrCollection()) {
keys.add(buildMemberTypeKey(identifier, textType, MEMBER_TYPE_PROPERTY));
keys.add(buildMemberTypeKey(identifier, textType, MEMBER_TYPE_COLLECTION));
} else {
keys.add(buildMemberTypeKey(identifier, textType, MEMBER_TYPE_ACTION));
}
return keys;
}
代码示例来源:origin: org.apache.isis.runtimes.dflt.remoting/common
private ObjectMember getMember(final String memberName) {
final Identifier id = Identifier.fromIdentityString(memberName);
final ObjectSpecification specification = getSpecificationLoader().loadSpecification(id.getClassName());
if (id.isPropertyOrCollection()) {
return getAssociationElseThrowException(id, specification);
} else {
return getActionElseThrowException(id, specification);
}
}
内容来源于网络,如有侵权,请联系作者删除!