本文整理汇总了Java中ims.core.vo.lookups.UserDefinedAssessmentTypeCollection.add方法的典型用法代码示例。如果您正苦于以下问题:Java UserDefinedAssessmentTypeCollection.add方法的具体用法?Java UserDefinedAssessmentTypeCollection.add怎么用?Java UserDefinedAssessmentTypeCollection.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.core.vo.lookups.UserDefinedAssessmentTypeCollection
的用法示例。
在下文中一共展示了UserDefinedAssessmentTypeCollection.add方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAssessmentTypes
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入方法依赖的package包/类
private UserDefinedAssessmentTypeCollection getAssessmentTypes(UserDefinedAssessmentType value)
{
UserDefinedAssessmentTypeCollection lkpColl = new UserDefinedAssessmentTypeCollection();
if(value != null)
{
lkpColl.add(value);
if(value.equals(UserDefinedAssessmentType.USERDEFINEDDATASHEET))
{
lkpColl.add(UserDefinedAssessmentType.DISCHARGECHECKLIST);
}
if(value.equals(UserDefinedAssessmentType.ASSESSMENTTOOL))
{
lkpColl.add(UserDefinedAssessmentType.DPP);
}
}
return lkpColl;
}
示例2: getUserDefinedTypes
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入方法依赖的package包/类
private UserDefinedAssessmentTypeCollection getUserDefinedTypes(UserDefinedAssessmentType type)
{
UserDefinedAssessmentTypeCollection assTypeColl = new UserDefinedAssessmentTypeCollection();
if(type != null)
{
assTypeColl.add(type);
UserDefinedAssessmentTypeCollection udfColl = LookupHelper.getUserDefinedAssessmentType(domain.getLookupService());
for (int i = 0; i < udfColl.size(); i++)
{
UserDefinedAssessmentType lkpType = udfColl.get(i);
if(type.equals(lkpType))
{
//Add the children (if any) to the collection
for (int j = 0; lkpType.getChildInstances() != null && j < lkpType.getChildInstances().size(); j++)
{
assTypeColl.add((UserDefinedAssessmentType)lkpType.getChildInstances().get(j));
}
}
}
}
return assTypeColl;
}
示例3: listUserAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入方法依赖的package包/类
private UserAssessmentLiteVoCollection listUserAssessments()
{
UserDefinedAssessmentTypeCollection coll = new UserDefinedAssessmentTypeCollection();
coll.add(UserDefinedAssessmentType.DPP);
//coll.add(UserDefinedAssessmentType.ADDITIONALDPP);
return domain.listUserAssessments(coll);
}
示例4: getUserDefinedTypes
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入方法依赖的package包/类
private UserDefinedAssessmentTypeCollection getUserDefinedTypes(UserDefinedAssessmentType type, UserDefinedAssessmentType excludedType)
{
UserDefinedAssessmentTypeCollection assTypeColl = new UserDefinedAssessmentTypeCollection();
if(type != null)
{
assTypeColl.add(type);
UserDefinedAssessmentTypeCollection udfColl = LookupHelper.getUserDefinedAssessmentType(domain.getLookupService());
for (int i = 0; i < udfColl.size(); i++)
{
UserDefinedAssessmentType lkpType = udfColl.get(i);
if(type.equals(lkpType))
{
//Add the children (if any) to the collection
for (int j = 0; lkpType.getChildInstances() != null && j < lkpType.getChildInstances().size(); j++)
{
UserDefinedAssessmentType userDefinedAssessmentType = (UserDefinedAssessmentType)lkpType.getChildInstances().get(j);
if(excludedType != null && excludedType.equals(userDefinedAssessmentType))
continue;
assTypeColl.add(userDefinedAssessmentType);
}
}
}
}
return assTypeColl;
}
示例5: listAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入方法依赖的package包/类
public UserAssessmentShortVoCollection listAssessments(String name, UserAssessmentCategory category, UserDefinedAssessmentType assessmentType)
{
UserDefinedAssessmentTypeCollection lkpColl = new UserDefinedAssessmentTypeCollection();
if (assessmentType != null)
lkpColl.add(assessmentType);
return listAssessments(name, category, lkpColl, null);
}