本文整理汇总了Java中org.kuali.rice.krad.datadictionary.AttributeDefinition.getDescription方法的典型用法代码示例。如果您正苦于以下问题:Java AttributeDefinition.getDescription方法的具体用法?Java AttributeDefinition.getDescription怎么用?Java AttributeDefinition.getDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.krad.datadictionary.AttributeDefinition
的用法示例。
在下文中一共展示了AttributeDefinition.getDescription方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAttributeDescription
import org.kuali.rice.krad.datadictionary.AttributeDefinition; //导入方法依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getAttributeDescription(java.lang.String)
*/
@Override
public String getAttributeDescription(String entryName, String attributeName) {
String description = null;
AttributeDefinition attributeDefinition = getAttributeDefinition(entryName, attributeName);
if (attributeDefinition != null) {
description = attributeDefinition.getDescription();
}
return description;
}
示例2: getAttributeDescription
import org.kuali.rice.krad.datadictionary.AttributeDefinition; //导入方法依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getAttributeDescription(java.lang.String)
*/
@Override
public String getAttributeDescription(String entryName, String attributeName) {
String description = null;
AttributeDefinition attributeDefinition = getAttributeDefinition(entryName, attributeName);
if (attributeDefinition != null) {
description = attributeDefinition.getDescription();
}
return description;
}
示例3: buildAttributeMap
import org.kuali.rice.krad.datadictionary.AttributeDefinition; //导入方法依赖的package包/类
public ExportMap buildAttributeMap(AttributeDefinition attribute, String fullClassName) {
ExportMap attributeMap = new ExportMap(attribute.getName());
// simple properties
attributeMap.set("name", attribute.getName());
attributeMap.set("forceUppercase", attribute.getForceUppercase().toString());
attributeMap.set("label", attribute.getLabel());
attributeMap.set("shortLabel", attribute.getShortLabel());
//KULRICE-9144 remove maxLength non null assumption
Integer maxLength = attribute.getMaxLength();
if (maxLength != null) {
attributeMap.set("maxLength", maxLength.toString());
}
String exclusiveMin = attribute.getExclusiveMin();
if (exclusiveMin != null) {
attributeMap.set("exclusiveMin", exclusiveMin/*.toString()*/);
}
String exclusiveMax = attribute.getInclusiveMax();
if (exclusiveMax != null) {
attributeMap.set("exclusiveMax", exclusiveMax/*.toString()*/);
}
if (attribute.isRequired() != null) {
attributeMap.set("required", attribute.isRequired().toString());
} else {
attributeMap.set("required", "false");
}
if (attribute.getSummary() != null) {
attributeMap.set("summary", attribute.getSummary());
}
if (attribute.getDescription() != null) {
attributeMap.set("description", attribute.getDescription());
}
if (attribute.hasFormatterClass()) {
attributeMap.set("formatterClass", attribute.getFormatterClass());
}
/**
// complex properties
if (attribute.hasValidationPattern()) {
attributeMap.set(attribute.getValidationPattern().buildExportMap("validationPattern"));
}
if(attribute.hasAttributeSecurity()){
attributeMap.set("attributeSecurityMask", String.valueOf(attribute.getAttributeSecurity().isMask()));
attributeMap.set("attributeSecurityPartialMask", String.valueOf(attribute.getAttributeSecurity().isPartialMask()));
attributeMap.set("attributeSecurityHide", String.valueOf(attribute.getAttributeSecurity().isHide()));
attributeMap.set("attributeSecurityReadOnly", String.valueOf(attribute.getAttributeSecurity().isReadOnly()));
// TODO: consider whether to export class names from the attribute security
}
*/
attributeMap.set(buildControlMap(attribute));
if (attribute.getOptionsFinder() != null) {
attributeMap.set(buildKeyLabelMap(attribute));
}
if (StringUtils.isNotBlank(fullClassName)) {
attributeMap.set("fullClassName", fullClassName);
}
return attributeMap;
}