本文整理了Java中org.nakedobjects.metamodel.spec.NakedObjectSpecification.getPluralName()
方法的一些代码示例,展示了NakedObjectSpecification.getPluralName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NakedObjectSpecification.getPluralName()
方法的具体详情如下:
包路径:org.nakedobjects.metamodel.spec.NakedObjectSpecification
类名称:NakedObjectSpecification
方法名:getPluralName
[英]Returns the plural name for objects of this specification.
[中]返回此规范对象的复数名称。
代码示例来源:origin: org.nakedobjects/metamodel
public String titleString() {
return instanceSpecification.getPluralName() + ", " + size();
}
代码示例来源:origin: org.nakedobjects.core/runtime
public String title() {
return getSpec().getPluralName();
}
代码示例来源:origin: org.nakedobjects.core/metamodel
public String titleString() {
return instanceSpecification.getPluralName() + ", " + size();
}
代码示例来源:origin: org.nakedobjects.core/runtime
public String disableAllInstances() {
return hasInstances() ? null : "No " + getSpec().getPluralName();
}
代码示例来源:origin: org.nakedobjects.core/runtime
private String collectionTitleString(final CollectionFacet facet) {
final int size = elementsLoaded() ? facet.size(this) : INCOMPLETE_COLLECTION;
final TypeOfFacet typeFacet = getTypeOfFacet();
final NakedObjectSpecification elementSpecification = typeFacet == null ? null : typeFacet.valueSpec();
if (elementSpecification == null || elementSpecification.getFullName().equals(Object.class.getName())) {
switch (size) {
case -1:
return "Objects";
case 0:
return "No objects";
case 1:
return "1 object";
default:
return size + " objects";
}
} else {
switch (size) {
case -1:
return elementSpecification.getPluralName();
case 0:
return "No " + elementSpecification.getPluralName();
case 1:
return "1 " + elementSpecification.getSingularName();
default:
return size + " " + elementSpecification.getPluralName();
}
}
}
代码示例来源:origin: org.nakedobjects.plugins/htmlviewer-viewer
for(String id: collectionMap.keySet()) {
final CollectionMapping coll = collectionMap.get(id);
debug.appendln(id + " -> collection of " + coll.getElementSpecification().getPluralName());
coll.debug(debug);
代码示例来源:origin: org.nakedobjects.plugins/html-viewer
for(String id: collectionMap.keySet()) {
final CollectionMapping coll = collectionMap.get(id);
debug.appendln(id + " -> collection of " + coll.getElementSpecification().getPluralName());
coll.debug(debug);
代码示例来源:origin: org.nakedobjects.core/runtime
.getSingularName(), nos.getPluralName());
nofMeta.appendNofTitle(element, object.titleString());
代码示例来源:origin: org.nakedobjects.core/runtime
debug.appendln("Short Name", specification.getShortName());
debug.appendln("Singular Name", specification.getSingularName());
debug.appendln("Plural Name", specification.getPluralName());
debug.appendln("Description", specification.getDescription());
debug.blankLine();
内容来源于网络,如有侵权,请联系作者删除!