当前位置: 首页>>代码示例>>Java>>正文


Java CollectionDefinition类代码示例

本文整理汇总了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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:22,代码来源:TestDataDictionaryService.java

示例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;
   }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:22,代码来源:DataDictionaryServiceImpl.java

示例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;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:21,代码来源:DataDictionaryServiceImpl.java

示例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>());
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:CollectionDefinitionConstraintProvider.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:13,代码来源:CollectionDefinitionConstraintProvider.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:TestDataDictionaryService.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:TestDataDictionaryService.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:TestDataDictionaryService.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:TestDataDictionaryService.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:TestDataDictionaryService.java

示例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();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:12,代码来源:CollectionSizeConstraintProcessorTest.java

示例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;
   }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DataDictionaryServiceImpl.java

示例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;
   }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DataDictionaryServiceImpl.java

示例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;
   }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:DataDictionaryServiceImpl.java

示例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;
   }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:DataDictionaryServiceImpl.java


注:本文中的org.kuali.rice.krad.datadictionary.CollectionDefinition类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。