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


Java LexEVSResolvedValueSetServiceImpl类代码示例

本文整理汇总了Java中org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl的典型用法代码示例。如果您正苦于以下问题:Java LexEVSResolvedValueSetServiceImpl类的具体用法?Java LexEVSResolvedValueSetServiceImpl怎么用?Java LexEVSResolvedValueSetServiceImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LexEVSResolvedValueSetServiceImpl类属于org.lexgrid.resolvedvalueset.impl包,在下文中一共展示了LexEVSResolvedValueSetServiceImpl类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: construct_checked_vocabularies_string

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public String construct_checked_vocabularies_string() {
 StringBuffer buf = new StringBuffer();
 LexBIGService lbs = RemoteServerUtil.createLexBIGService();
 List<CodingScheme> choices = new ArrayList<CodingScheme>();
 LexEVSResolvedValueSetService lrvs = new LexEVSResolvedValueSetServiceImpl(lbs);
 try {
  List<CodingScheme> schemes = lrvs.listAllResolvedValueSets();
  for (int i = 0; i < schemes.size(); i++) {
		CodingScheme cs = schemes.get(i);
		String uri = cs.getCodingSchemeURI();
		buf.append(uri);
		if (i < schemes.size()-1) {
			buf.append(",");
		}
  }
 } catch (Exception ex) {
  ex.printStackTrace();
 }
 return buf.toString();
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:21,代码来源:AjaxServlet.java

示例2: getListOfCodingSchemeVersionsUsedInResolution

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public static AbsoluteCodingSchemeVersionReferenceList getListOfCodingSchemeVersionsUsedInResolution(String codingScheme) {
       try {
           LexBIGService lbSvc = RemoteServerUtil.createLexBIGService();
           if (lbSvc == null) {
               _logger
                   .warn("WARNING: Unable to connect to instantiate LexBIGService ???");
               return null;
           }
           CodingScheme scheme = lbSvc.resolveCodingScheme(codingScheme, null);

           //System.out.println("(*) getListOfCodingSchemeVersionsUsedInResolution " + scheme.getFormalName());

           LexEVSResolvedValueSetService service = new LexEVSResolvedValueSetServiceImpl(lbSvc);
           if (service != null) {
			AbsoluteCodingSchemeVersionReferenceList acsvr = service.getListOfCodingSchemeVersionsUsedInResolution(scheme);
			return acsvr;
	    } else {
			System.out.println("(*) getListOfCodingSchemeVersionsUsedInResolution service == NULL???");
		}

	} catch (Exception ex) {
		ex.printStackTrace();
		//System.out.println("getListOfCodingSchemeVersionsUsedInResolution throws exception " + codingScheme);
	}
	return null;
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:27,代码来源:DataUtils.java

示例3: getResolvedValueSetCodingSchemes

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public Vector getResolvedValueSetCodingSchemes() {
Vector w = new Vector();
try {
	//List<CodingScheme> choices = new ArrayList<CodingScheme>();
	LexEVSResolvedValueSetService lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);

	if (lrvs == null) {
		System.out.println("WARNING: lrvs == null???");
		return null;
	}
	List<CodingScheme> schemes = lrvs.listAllResolvedValueSets();
	if (schemes == null) {
		System.out.println("WARNING: lrvs.listAllResolvedValueSets() returns null.");
		return null;
	}
	for (int i = 0; i < schemes.size(); i++) {
		CodingScheme cs = schemes.get(i);
              w.add(cs.getCodingSchemeName() + "|" + cs.getRepresentsVersion() + "|" + cs.getFormalName() + "|" + cs.getCodingSchemeURI());
	}
} catch (Exception ex) {
	ex.printStackTrace();
}
return w;
  }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:25,代码来源:CodingSchemeDataUtils.java

示例4: getResolvedValueSetHashMap

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public HashMap getResolvedValueSetHashMap() {
if (resovedValueSetHashMap != null) return resovedValueSetHashMap;
HashMap hmap = new HashMap();
try {
	//List<CodingScheme> choices = new ArrayList<CodingScheme>();
	LexEVSResolvedValueSetService lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);
	List<CodingScheme> schemes = lrvs.listAllResolvedValueSets();
	for (int i = 0; i < schemes.size(); i++) {
		CodingScheme cs = schemes.get(i);
		int j = i+1;
		String key = cs.getCodingSchemeURI();
		String name = cs.getCodingSchemeName();
		String value = cs.getRepresentsVersion();
		Vector v = new Vector();
		if (hmap.containsKey(key)) {
			v = (Vector) hmap.get(key);
		}
		v.add(value);
		hmap.put(key, v);
	}
} catch (Exception ex) {
	ex.printStackTrace();
}
return hmap;
  }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:26,代码来源:CodingSchemeDataUtils.java

示例5: getResolvedValueSetHashMap

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public static HashMap getResolvedValueSetHashMap() {
if (resovedValueSetHashMap != null) return resovedValueSetHashMap;
HashMap hmap = new HashMap();
_VSDURI2NameHashMap = new HashMap();
try {
	long ms = System.currentTimeMillis();
	LexBIGService lbs = RemoteServerUtil.createLexBIGService();
	List<CodingScheme> choices = new ArrayList<CodingScheme>();
	LexEVSResolvedValueSetService lrvs = new LexEVSResolvedValueSetServiceImpl(lbs);
	List<CodingScheme> schemes = lrvs.listAllResolvedValueSets();
	for (int i = 0; i < schemes.size(); i++) {
		CodingScheme cs = schemes.get(i);
		int j = i+1;
		String key = cs.getCodingSchemeURI();
		String name = cs.getCodingSchemeName();
		_VSDURI2NameHashMap.put(key, name);

		String value = cs.getRepresentsVersion();
		Vector v = new Vector();
		if (hmap.containsKey(key)) {
			v = (Vector) hmap.get(key);
		}
		v.add(value);
		hmap.put(key, v);
	}
	System.out.println("Total run time (ms): " + (System.currentTimeMillis() - ms));

} catch (Exception ex) {
	ex.printStackTrace();
}
return hmap;
  }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:33,代码来源:DataUtils.java

示例6: getListOfCodingSchemeVersionsUsedInResolution

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public AbsoluteCodingSchemeVersionReferenceList getListOfCodingSchemeVersionsUsedInResolution(String codingScheme) {
       try {
           CodingScheme scheme = lbSvc.resolveCodingScheme(codingScheme, null);
           LexEVSResolvedValueSetService service = new LexEVSResolvedValueSetServiceImpl(lbSvc);
           if (service != null) {
			AbsoluteCodingSchemeVersionReferenceList acsvr = service.getListOfCodingSchemeVersionsUsedInResolution(scheme);
			return acsvr;
	    }

	} catch (Exception ex) {
		ex.printStackTrace();
	}
	return null;
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:15,代码来源:CodingSchemeDataUtils.java

示例7: SimpleSearchUtils

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public SimpleSearchUtils(LexBIGService lbSvc) {
       this.lbSvc = lbSvc;
       this.lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:5,代码来源:SimpleSearchUtils.java

示例8: setLexBIGService

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public void setLexBIGService(LexBIGService lbSvc) {
	this.lbSvc = lbSvc;
	this.lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:5,代码来源:SimpleSearchUtils.java

示例9: ValueSetSearchUtils

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public ValueSetSearchUtils(LexBIGService lbSvc) {
	this.lbSvc = lbSvc;
       this.lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);
       this.csdu = new CodingSchemeDataUtils(lbSvc);
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:6,代码来源:ValueSetSearchUtils.java

示例10: getObject

import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
@Override
public LexEVSResolvedValueSetService getObject() throws Exception {
	return new LexEVSResolvedValueSetServiceImpl(lbs);	
}
 
开发者ID:NCIP,项目名称:lexevs-service,代码行数:5,代码来源:LexEVSResolvedValueSetServiceFactory.java


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