本文整理汇总了Java中org.kuali.rice.krad.datadictionary.CollectionDefinition类的典型用法代码示例。如果您正苦于以下问题:Java CollectionDefinition类的具体用法?Java CollectionDefinition怎么用?Java CollectionDefinition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CollectionDefinition类属于org.kuali.rice.krad.datadictionary包,在下文中一共展示了CollectionDefinition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCollectionElementLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionElementLabel(java.lang.Class,
* java.lang.String)
*/
@Override
public String getCollectionElementLabel(String entryName, String collectionName, Class dataObjectClass) {
String elementLabel = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
elementLabel = collectionDefinition.getElementLabel();
if (StringUtils.isEmpty(elementLabel)) {
BusinessObjectEntry boe = getDataDictionary().getBusinessObjectEntry(dataObjectClass.getName());
if (boe != null) {
elementLabel = boe.getObjectLabel();
}
}
}
return elementLabel;
}
示例2: getCollectionElementLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionElementLabel(java.lang.Class,
* java.lang.String)
*/
@Override
public String getCollectionElementLabel(String entryName, String collectionName, Class dataObjectClass) {
String elementLabel = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
elementLabel = collectionDefinition.getElementLabel();
if (StringUtils.isEmpty(elementLabel)) {
BusinessObjectEntry boe = getDataDictionary().getBusinessObjectEntry(dataObjectClass.getName());
if (boe != null) {
elementLabel = boe.getObjectLabel();
}
}
}
return elementLabel;
}
示例3: getCollectionElementLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionElementLabel(java.lang.Class,
* java.lang.String)
*/
public String getCollectionElementLabel(String entryName, String collectionName, Class dataObjectClass) {
String elementLabel = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
elementLabel = collectionDefinition.getElementLabel();
if (StringUtils.isEmpty(elementLabel)) {
BusinessObjectEntry boe = getDataDictionary().getBusinessObjectEntry(dataObjectClass.getName());
if (boe != null) {
elementLabel = boe.getObjectLabel();
}
}
}
return elementLabel;
}
示例4: init
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
@Override
public void init() {
resolverMap = new HashMap<String, ConstraintResolver<CollectionDefinition>>();
resolverMap.put(ExistenceConstraint.class.getName(), new DefinitionConstraintResolver<CollectionDefinition>());
resolverMap.put(CollectionSizeConstraint.class.getName(),
new DefinitionConstraintResolver<CollectionDefinition>());
}
示例5: isSupported
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.datadictionary.validation.constraint.provider.ConstraintProvider#isSupported(org.kuali.rice.krad.datadictionary.validation.capability.Constrainable)
*/
@Override
public boolean isSupported(Constrainable definition) {
if (definition instanceof CollectionDefinition) {
return true;
}
return false;
}
示例6: getCollectionLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionLabel(java.lang.Class, java.lang.String)
*/
@Override
public String getCollectionLabel(String entryName, String collectionName) {
String label = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
label = collectionDefinition.getLabel();
}
return label;
}
示例7: getCollectionShortLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionShortLabel(java.lang.Class, java.lang.String)
*/
@Override
public String getCollectionShortLabel(String entryName, String collectionName) {
String shortLabel = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
shortLabel = collectionDefinition.getShortLabel();
}
return shortLabel;
}
示例8: getCollectionSummary
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionSummary(java.lang.Class, java.lang.String)
*/
@Override
public String getCollectionSummary(String entryName, String collectionName) {
String summary = null;
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
summary = collectionDefinition.getSummary();
}
return summary;
}
示例9: getCollectionDescription
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionDescription(java.lang.Class,
* java.lang.String)
*/
@Override
public String getCollectionDescription(String entryName, String collectionName) {
String description = null;
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
description = collectionDefinition.getDescription();
}
return description;
}
示例10: getCollectionDefinition
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @param entryName
* @param collectionName
* @return CollectionDefinition for the given entryName and collectionName, or null if there is none
*/
private CollectionDefinition getCollectionDefinition(String entryName, String collectionName) {
if (StringUtils.isBlank(collectionName)) {
throw new IllegalArgumentException("invalid (blank) collectionName");
}
CollectionDefinition collectionDefinition = null;
DataDictionaryEntryBase entry =
(DataDictionaryEntryBase) getDataDictionary().getDictionaryObjectEntry(entryName);
if (entry != null) {
collectionDefinition = entry.getCollectionDefinition(collectionName);
}
return collectionDefinition;
}
示例11: process
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
private ConstraintValidationResult process(DictionaryValidationResult dictionaryValidationResult, Object object, CollectionDefinition definition, String attributeName) {
BusinessObjectEntry entry = new BusinessObjectEntry();
entry.setCollections(Collections.singletonList((CollectionDefinition)definition));
AttributeValueReader attributeValueReader = new DictionaryObjectAttributeValueReader(object, "org.kuali.rice.kns.datadictionary.validation.Company", entry);
attributeValueReader.setAttributeName(attributeName);
Collection<?> value = (Collection<?>)attributeValueReader.getValue();
return processor.process(dictionaryValidationResult, value, definition, attributeValueReader).getFirstConstraintValidationResult();
}
示例12: getCollectionLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionLabel(java.lang.Class, java.lang.String)
*/
@Override
public String getCollectionLabel(String entryName, String collectionName) {
String label = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
label = collectionDefinition.getLabel();
}
return label;
}
示例13: getCollectionShortLabel
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionShortLabel(java.lang.Class, java.lang.String)
*/
@Override
public String getCollectionShortLabel(String entryName, String collectionName) {
String shortLabel = "";
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
shortLabel = collectionDefinition.getShortLabel();
}
return shortLabel;
}
示例14: getCollectionSummary
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionSummary(java.lang.Class, java.lang.String)
*/
@Override
public String getCollectionSummary(String entryName, String collectionName) {
String summary = null;
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
summary = collectionDefinition.getSummary();
}
return summary;
}
示例15: getCollectionDescription
import org.kuali.rice.krad.datadictionary.CollectionDefinition; //导入依赖的package包/类
/**
* @see org.kuali.rice.krad.service.DataDictionaryService#getCollectionDescription(java.lang.Class,
* java.lang.String)
*/
@Override
public String getCollectionDescription(String entryName, String collectionName) {
String description = null;
CollectionDefinition collectionDefinition = getCollectionDefinition(entryName, collectionName);
if (collectionDefinition != null) {
description = collectionDefinition.getDescription();
}
return description;
}