本文整理汇总了Java中org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference.setCodingSchemeVersion方法的典型用法代码示例。如果您正苦于以下问题:Java ResolvedConceptReference.setCodingSchemeVersion方法的具体用法?Java ResolvedConceptReference.setCodingSchemeVersion怎么用?Java ResolvedConceptReference.setCodingSchemeVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference
的用法示例。
在下文中一共展示了ResolvedConceptReference.setCodingSchemeVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: get
import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference; //导入方法依赖的package包/类
@Override
public ResolvedConceptReferenceList get(int start, int end)
throws LBResourceUnavailableException, LBInvocationException,
LBParameterException {
ResolvedConceptReferenceList list = new ResolvedConceptReferenceList();
if(start > 0 && start <= this.codedNodeList.size()){
if(end > 0 && end <= this.codedNodeList.size()){
for(int i=start; i < end; i++){
ResolvedConceptReference resolvedConceptReference = new ResolvedConceptReference();
String codingSchemeName = this.codedNodeList.get(i).getCodingScheme();
String codingSchemeVersion = this.codedNodeList.get(i).getVersion();
resolvedConceptReference.setCodingSchemeName(codingSchemeName);
resolvedConceptReference.setCodingSchemeVersion(codingSchemeVersion);
list.addResolvedConceptReference(resolvedConceptReference );
}
}
}
return list;
}
示例2: doBuildResolvedConceptReference
import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference; //导入方法依赖的package包/类
protected ResolvedConceptReference doBuildResolvedConceptReference(CodeToReturn codeToReturn,
LocalNameList restrictToProperties,
PropertyType[] restrictToPropertyTypes,
Filter[] filters,
boolean resolve) throws LBInvocationException {
SystemResourceService resourceManager = LexEvsServiceLocator.getInstance().getSystemResourceService();
// Always assign the basics...
ResolvedConceptReference rcr = new ResolvedConceptReference();
try {
rcr.setCodingSchemeURI(codeToReturn.getUri());
rcr.setCodingSchemeVersion(codeToReturn.getVersion());
rcr.setCode(codeToReturn.getCode());
rcr.setCodeNamespace(codeToReturn.getNamespace());
EntityDescription ed = new EntityDescription();
ed.setContent(codeToReturn.getEntityDescription());
rcr.setEntityDescription(ed);
rcr.setEntityType(codeToReturn.getEntityTypes());
rcr.setCodingSchemeName(
resourceManager.getInternalCodingSchemeNameForUserCodingSchemeName(codeToReturn.getUri(), codeToReturn.getVersion()));
} catch (LBParameterException e) {
// this should only happen when the codedNodeSet was constructed
// from a graph -
// and if a source or target concept in the graph is not available
// in the system.
rcr.setEntity(null);
}
// these (two) stay null by design
rcr.setSourceOf(null);
rcr.setTargetOf(null);
// these (two) stay null by design
rcr.setSourceOf(null);
rcr.setTargetOf(null);
if (filters != null && filters.length > 0) {
for (int i = 0; i < filters.length; i++) {
if (!filters[i].match(rcr)) {
return null;
}
}
}
return rcr;
}