本文整理汇总了Java中org.LexGrid.codingSchemes.CodingScheme.getCodingSchemeURI方法的典型用法代码示例。如果您正苦于以下问题:Java CodingScheme.getCodingSchemeURI方法的具体用法?Java CodingScheme.getCodingSchemeURI怎么用?Java CodingScheme.getCodingSchemeURI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.LexGrid.codingSchemes.CodingScheme
的用法示例。
在下文中一共展示了CodingScheme.getCodingSchemeURI方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getResovedValueSetVersions
import org.LexGrid.codingSchemes.CodingScheme; //导入方法依赖的package包/类
public Vector getResovedValueSetVersions(String selected_vocabulary) {
Vector v = new Vector();
try {
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 cs_name = cs.getCodingSchemeName();
String name = cs.getFormalName();
String value = cs.getRepresentsVersion();
if (key.compareTo(selected_vocabulary) == 0 || cs_name.compareTo(selected_vocabulary) == 0 || name.compareTo(selected_vocabulary) == 0) {
v.add(value);
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
return v;
}
示例2: getRVSCSName2VersionHashMap
import org.LexGrid.codingSchemes.CodingScheme; //导入方法依赖的package包/类
public HashMap getRVSCSName2VersionHashMap() {
HashMap hmap = new HashMap();
try {
List<CodingScheme> schemes = lrvs.listAllResolvedValueSets();
for (int i = 0; i < schemes.size(); i++) {
CodingScheme cs = schemes.get(i);
String uri = cs.getCodingSchemeURI();
String name = cs.getCodingSchemeName();
hmap.put(uri, cs.getRepresentsVersion());
hmap.put(name, cs.getRepresentsVersion());
}
} catch (Exception ex) {
ex.printStackTrace();
}
return hmap;
}
示例3: getResolvedValueSetHashMap
import org.LexGrid.codingSchemes.CodingScheme; //导入方法依赖的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;
}
示例4: determineSourceValue
import org.LexGrid.codingSchemes.CodingScheme; //导入方法依赖的package包/类
public static String determineSourceValue(String cts2SearchAttribute, CodingScheme lexCodingScheme, VersionNameConverter nameConverter){
String sourceValue = null;
if(lexCodingScheme == null){
return sourceValue;
}
if (cts2SearchAttribute.equals(Constants.ATTRIBUTE_NAME_ABOUT)) {
sourceValue = lexCodingScheme.getCodingSchemeURI();
} else if (cts2SearchAttribute.equals(Constants.ATTRIBUTE_NAME_RESOURCE_SYNOPSIS)) {
sourceValue = lexCodingScheme.getEntityDescription().getContent();
} else if (cts2SearchAttribute.equals(Constants.ATTRIBUTE_NAME_RESOURCE_NAME)) {
sourceValue =
nameConverter.toCts2VersionName(
lexCodingScheme.getCodingSchemeName(),
lexCodingScheme.getRepresentsVersion());
}
return sourceValue;
}
示例5: getCodeSystemUri
import org.LexGrid.codingSchemes.CodingScheme; //导入方法依赖的package包/类
@Override
public String getCodeSystemUri(CodingScheme codingScheme) {
return codingScheme.getCodingSchemeURI();
}
示例6: getSchemeURI
import org.LexGrid.codingSchemes.CodingScheme; //导入方法依赖的package包/类
/**
* Returns the coding scheme's URI
* @param scheme
* @param version
* @return
* @throws Exception
*/
public String getSchemeURI(String scheme, String version) throws Exception {
CodingSchemeVersionOrTag versionOrTag = new CodingSchemeVersionOrTag();
versionOrTag.setVersion(version);
CodingScheme cs = lbSvc.resolveCodingScheme(scheme, versionOrTag);
return cs.getCodingSchemeURI();
}