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


Java UserDefinedAssessmentTypeCollection.add方法代码示例

本文整理汇总了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;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:19,代码来源:Logic.java

示例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;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:Logic.java

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

示例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;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:Logic.java

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


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