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


Java ResolvedConceptReference.setCodingSchemeVersion方法代码示例

本文整理汇总了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;
}
 
开发者ID:NCIP,项目名称:lexevs-service,代码行数:23,代码来源:FakeResolvedConceptReferencesIteratorImpl.java

示例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;
}
 
开发者ID:NCIP,项目名称:cadsr-semantic-tools,代码行数:49,代码来源:DefaultCodeToReturnResolver.java


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