コード例 #1
0
 private boolean contains(
     AbsoluteCodingSchemeVersionReference[] acsvr, AbsoluteCodingSchemeVersionReference acsvr2) {
   for (int i = 0; i < acsvr.length; i++) {
     if (acsvr[i].getCodingSchemeURN().equals(acsvr2.getCodingSchemeURN())
         && acsvr[i].getCodingSchemeVersion().equals(acsvr2.getCodingSchemeVersion())) {
       return true;
     }
   }
   return false;
 }
コード例 #2
0
  public Vector getMappingCodingSchemesEntityParticipatesIn(String code, String namespace) {
    Vector v = new Vector();
    try {
      MappingExtension mappingExtension =
          (MappingExtension) lbSvc.getGenericExtension("MappingExtension");

      AbsoluteCodingSchemeVersionReferenceList mappingSchemes =
          mappingExtension.getMappingCodingSchemesEntityParticipatesIn(code, namespace);

      // output is all of the mapping ontologies that this code participates in.
      for (AbsoluteCodingSchemeVersionReference ref :
          mappingSchemes.getAbsoluteCodingSchemeVersionReference()) {
        v.add(ref.getCodingSchemeURN() + "|" + ref.getCodingSchemeVersion());
      }

    } catch (Exception ex) {
      ex.printStackTrace();
    }
    return v;
  }