本文整理汇总了Java中org.LexGrid.relations.AssociationPredicate.getAssociationName方法的典型用法代码示例。如果您正苦于以下问题:Java AssociationPredicate.getAssociationName方法的具体用法?Java AssociationPredicate.getAssociationName怎么用?Java AssociationPredicate.getAssociationName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.LexGrid.relations.AssociationPredicate
的用法示例。
在下文中一共展示了AssociationPredicate.getAssociationName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMappingAssociationNames
import org.LexGrid.relations.AssociationPredicate; //导入方法依赖的package包/类
public static NameAndValueList getMappingAssociationNames(String scheme, String version) {
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
if (version != null)
csvt.setVersion(version);
NameAndValueList navList = new NameAndValueList();
try {
LexBIGService lbSvc = null;
lbSvc = new RemoteServerUtil().createLexBIGService();
CodingScheme cs = lbSvc.resolveCodingScheme(scheme, csvt);
Relations[] relations = cs.getRelations();
for (int i = 0; i < relations.length; i++) {
Relations relation = relations[i];
Boolean isMapping = relation.isIsMapping();
if (isMapping != null && isMapping.equals(Boolean.TRUE)) {
AssociationPredicate[] associationPredicates = relation.getAssociationPredicate();
for (int j=0; j<associationPredicates.length; j++) {
AssociationPredicate associationPredicate = associationPredicates[j];
String name = associationPredicate.getAssociationName();
NameAndValue vNameAndValue = new NameAndValue();
vNameAndValue.setName(name);
navList.addNameAndValue(vNameAndValue);
}
return navList;
} else {
return null;
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}
示例2: getMappingAssociationNames
import org.LexGrid.relations.AssociationPredicate; //导入方法依赖的package包/类
public NameAndValueList getMappingAssociationNames(String scheme, String version) {
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
if (version != null) {
csvt.setVersion(version);
}
NameAndValueList navList = new NameAndValueList();
try {
CodingScheme cs = lbSvc.resolveCodingScheme(scheme, csvt);
Relations[] relations = cs.getRelations();
for (int i = 0; i < relations.length; i++) {
Relations relation = relations[i];
Boolean isMapping = relation.isIsMapping();
if (isMapping != null && isMapping.equals(Boolean.TRUE)) {
AssociationPredicate[] associationPredicates = relation.getAssociationPredicate();
for (int j=0; j<associationPredicates.length; j++) {
AssociationPredicate associationPredicate = associationPredicates[j];
String name = associationPredicate.getAssociationName();
NameAndValue vNameAndValue = new NameAndValue();
vNameAndValue.setName(name);
navList.addNameAndValue(vNameAndValue);
}
return navList;
} else {
return null;
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}
示例3: getMappingAssociationNames
import org.LexGrid.relations.AssociationPredicate; //导入方法依赖的package包/类
public NameAndValueList getMappingAssociationNames(String scheme, String version) {
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
if (version != null)
csvt.setVersion(version);
NameAndValueList navList = new NameAndValueList();
try {
//LexBIGService lbSvc = null;
//lbSvc = new RemoteServerUtil().createLexBIGService();
CodingScheme cs = lbSvc.resolveCodingScheme(scheme, csvt);
Relations[] relations = cs.getRelations();
for (int i = 0; i < relations.length; i++) {
Relations relation = relations[i];
Boolean isMapping = relation.isIsMapping();
if (isMapping != null && isMapping.equals(Boolean.TRUE)) {
AssociationPredicate[] associationPredicates = relation.getAssociationPredicate();
for (int j=0; j<associationPredicates.length; j++) {
AssociationPredicate associationPredicate = associationPredicates[j];
String name = associationPredicate.getAssociationName();
NameAndValue vNameAndValue = new NameAndValue();
vNameAndValue.setName(name);
navList.addNameAndValue(vNameAndValue);
}
return navList;
} else {
return null;
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}
示例4: getMappingAssociationNames
import org.LexGrid.relations.AssociationPredicate; //导入方法依赖的package包/类
public NameAndValueList getMappingAssociationNames(String scheme, String version) {
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
if (version != null)
csvt.setVersion(version);
NameAndValueList navList = new NameAndValueList();
try {
CodingScheme cs = lbSvc.resolveCodingScheme(scheme, csvt);
Relations[] relations = cs.getRelations();
for (int i = 0; i < relations.length; i++) {
Relations relation = relations[i];
Boolean isMapping = relation.isIsMapping();
if (isMapping != null && isMapping.equals(Boolean.TRUE)) {
AssociationPredicate[] associationPredicates = relation.getAssociationPredicate();
for (int j=0; j<associationPredicates.length; j++) {
AssociationPredicate associationPredicate = associationPredicates[j];
String name = associationPredicate.getAssociationName();
NameAndValue vNameAndValue = new NameAndValue();
vNameAndValue.setName(name);
navList.addNameAndValue(vNameAndValue);
}
return navList;
} else {
return null;
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}
示例5: getMappingAssociationNames
import org.LexGrid.relations.AssociationPredicate; //导入方法依赖的package包/类
public static NameAndValueList getMappingAssociationNames(String scheme, String version) {
CodingSchemeVersionOrTag csvt = new CodingSchemeVersionOrTag();
if (version != null)
csvt.setVersion(version);
NameAndValueList navList = new NameAndValueList();
try {
LexBIGService lbSvc = null;
lbSvc = new RemoteServerUtil().createLexBIGService();
CodingScheme cs = lbSvc.resolveCodingScheme(scheme, csvt);
Relations[] relations = cs.getRelations();
for (int i = 0; i < relations.length; i++) {
Relations relation = relations[i];
System.out.println(relation.getContainerName());
Boolean isMapping = relation.isIsMapping();
if (isMapping != null && isMapping.equals(Boolean.TRUE)) {
AssociationPredicate[] associationPredicates = relation.getAssociationPredicate();
for (int j=0; j<associationPredicates.length; j++) {
AssociationPredicate associationPredicate = associationPredicates[j];
String name = associationPredicate.getAssociationName();
NameAndValue vNameAndValue = new NameAndValue();
vNameAndValue.setName(name);
navList.addNameAndValue(vNameAndValue);
System.out.println("getMappingAssociationNames " + name);
}
return navList;
} else {
return null;
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
return null;
}