本文整理汇总了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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: SimpleSearchUtils
import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public SimpleSearchUtils(LexBIGService lbSvc) {
this.lbSvc = lbSvc;
this.lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);
}
示例8: setLexBIGService
import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
public void setLexBIGService(LexBIGService lbSvc) {
this.lbSvc = lbSvc;
this.lrvs = new LexEVSResolvedValueSetServiceImpl(lbSvc);
}
示例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);
}
示例10: getObject
import org.lexgrid.resolvedvalueset.impl.LexEVSResolvedValueSetServiceImpl; //导入依赖的package包/类
@Override
public LexEVSResolvedValueSetService getObject() throws Exception {
return new LexEVSResolvedValueSetServiceImpl(lbs);
}