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


Java CodingSchemeSummary.getFormalName方法代码示例

本文整理汇总了Java中org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary.getFormalName方法的典型用法代码示例。如果您正苦于以下问题:Java CodingSchemeSummary.getFormalName方法的具体用法?Java CodingSchemeSummary.getFormalName怎么用?Java CodingSchemeSummary.getFormalName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary的用法示例。


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

示例1: getVersionListData

import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary; //导入方法依赖的package包/类
public Vector<String> getVersionListData(String codingSchemeName) {
     Vector<String> v = new Vector();
     try {
         CodingSchemeRenderingList csrl = lbSvc.getSupportedCodingSchemes();
         if (csrl == null) {
             return v;
}
         CodingSchemeRendering[] csrs = csrl.getCodingSchemeRendering();
         for (int i = 0; i < csrs.length; i++) {
             CodingSchemeRendering csr = csrs[i];
             Boolean isActive =
                 csr.getRenderingDetail().getVersionStatus().equals(
                     CodingSchemeVersionStatus.ACTIVE);
             CodingSchemeSummary css = csr.getCodingSchemeSummary();
             String formalname = css.getFormalName();
             if (formalname.compareTo(codingSchemeName) == 0 || css.getCodingSchemeURI().compareTo(codingSchemeName) == 0
                 || css.getLocalName().compareTo(codingSchemeName) == 0) {
                 String representsVersion = css.getRepresentsVersion();
                 v.add(representsVersion);
             }
         }
     } catch (Exception ex) {
         ex.printStackTrace();
     }
     return v;
 }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:27,代码来源:CodingSchemeDataUtils.java

示例2: queryReturnsData

import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary; //导入方法依赖的package包/类
public static <T extends ResourceQuery> boolean queryReturnsData(
		CodingSchemeRenderingList lexCodingSchemeRenderingList,
		QueryData<T> queryData){
	boolean found = false;
	String lexRenderingFormalName, lexRenderingVersion;
	CodingSchemeSummary lexRenderingSummary;
	
	int renderingCount = lexCodingSchemeRenderingList.getCodingSchemeRenderingCount();
	
	for(int index=0; index < renderingCount; index++){
		lexRenderingSummary = lexCodingSchemeRenderingList.getCodingSchemeRendering(index).getCodingSchemeSummary();
		lexRenderingFormalName = lexRenderingSummary.getFormalName() != null ? lexRenderingSummary.getFormalName() : lexRenderingSummary.getLocalName();
		lexRenderingVersion = lexRenderingSummary.getRepresentsVersion();

		if(lexRenderingFormalName.equals(queryData.getLexSchemeName()) && 
			lexRenderingVersion.equals(queryData.getLexVersionOrTag().getVersion())){
			found = true;
		}
	}		
		
	return found;
}
 
开发者ID:NCIP,项目名称:lexevs-service,代码行数:23,代码来源:CommonSearchFilterUtils.java

示例3: getVersionListData

import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary; //导入方法依赖的package包/类
public static Vector<String> getVersionListData(String codingSchemeName) {

        Vector<String> v = new Vector();
		try {
        	RemoteServerUtil rsu = new RemoteServerUtil();
			//EVSApplicationService lbSvc = rsu.createLexBIGService();
			LexBIGService lbSvc = RemoteServerUtil.createLexBIGService();
			CodingSchemeRenderingList csrl = lbSvc.getSupportedCodingSchemes();
			if(csrl == null) _logger.debug("csrl is NULL");

			CodingSchemeRendering[] csrs = csrl.getCodingSchemeRendering();
			for (int i=0; i<csrs.length; i++)
			{
				CodingSchemeRendering csr = csrs[i];
            	Boolean isActive = csr.getRenderingDetail().getVersionStatus().equals(CodingSchemeVersionStatus.ACTIVE);
				if (isActive != null && isActive.equals(Boolean.TRUE))
				{
					CodingSchemeSummary css = csr.getCodingSchemeSummary();
					String formalname = css.getFormalName();
					if (formalname.compareTo(codingSchemeName) == 0)
					{
						String representsVersion = css.getRepresentsVersion();
						v.add(representsVersion);
					}
				}
			}
	   } catch (Exception ex) {

	   }
	   return v;
   }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:32,代码来源:SearchUtils.java

示例4: getVocabularyVersionByTag

import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary; //导入方法依赖的package包/类
public String getVocabularyVersionByTag(String codingSchemeName, String ltag) {
if (codingSchemeName == null) return null;
      String version = null;
      int knt = 0;
      try {
          CodingSchemeRenderingList lcsrl = lbSvc.getSupportedCodingSchemes();
          CodingSchemeRendering[] csra = lcsrl.getCodingSchemeRendering();
          for (int i = 0; i < csra.length; i++) {
              CodingSchemeRendering csr = csra[i];
              CodingSchemeSummary css = csr.getCodingSchemeSummary();
              if ((css.getFormalName() != null && css.getFormalName().compareTo(codingSchemeName) == 0)
                  || (css.getLocalName() != null && css.getLocalName().compareTo(codingSchemeName) == 0)
                  || (css.getCodingSchemeURI() != null && css.getCodingSchemeURI().compareTo(codingSchemeName) == 0)) {
			version = css.getRepresentsVersion();
                  knt++;

                  if (ltag == null)
                      return version;
                  RenderingDetail rd = csr.getRenderingDetail();
                  CodingSchemeTagList cstl = rd.getVersionTags();
                  java.lang.String[] tags = cstl.getTag();
                  if (tags == null)
                      return version;

			if (tags.length > 0) {
                      for (int j = 0; j < tags.length; j++) {
                          String version_tag = (String) tags[j];
                          if (version_tag != null && version_tag.compareToIgnoreCase(ltag) == 0) {
                              return version;
                          }
                      }
                  }
              }
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
      if (ltag != null && ltag.compareToIgnoreCase("PRODUCTION") == 0 & knt == 1) {
          return version;
      }
      return null;
  }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:43,代码来源:EntityExporter.java

示例5: getVocabularyVersionByTag

import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary; //导入方法依赖的package包/类
public String getVocabularyVersionByTag(String codingSchemeName, String ltag) {
if (codingSchemeName == null) return null;
      String version = null;
      int knt = 0;
      try {
          CodingSchemeRenderingList lcsrl = lbSvc.getSupportedCodingSchemes();
          CodingSchemeRendering[] csra = lcsrl.getCodingSchemeRendering();
          for (int i = 0; i < csra.length; i++) {
              CodingSchemeRendering csr = csra[i];
              CodingSchemeSummary css = csr.getCodingSchemeSummary();
              if ((css.getFormalName() != null && css.getFormalName().compareTo(codingSchemeName) == 0)
                  || (css.getLocalName() != null && css.getLocalName().compareTo(codingSchemeName) == 0)
                  || (css.getCodingSchemeURI() != null && css.getCodingSchemeURI().compareTo(codingSchemeName) == 0)) {
			version = css.getRepresentsVersion();
                  knt++;

                  if (ltag == null)
                      return version;
                  RenderingDetail rd = csr.getRenderingDetail();
                  CodingSchemeTagList cstl = rd.getVersionTags();
                  java.lang.String[] tags = cstl.getTag();
                  if (tags == null)
                      return version;

			if (tags.length > 0) {
                      for (int j = 0; j < tags.length; j++) {
                          String version_tag = (String) tags[j];
                          if (version_tag != null && version_tag.compareToIgnoreCase(ltag) == 0) {
                              return version;
                          }
                      }
                  }
              }
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
      if (ltag != null && ltag.compareToIgnoreCase(PRODUCTION) == 0 & knt == 1) {
          return version;
      }
      return null;
  }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:43,代码来源:CodingSchemeDataUtils.java

示例6: getVocabularyVersionTag

import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary; //导入方法依赖的package包/类
public String getVocabularyVersionTag(String codingSchemeName, String version) {
    if (codingSchemeName == null)
        return null;
    try {
        CodingSchemeRenderingList lcsrl = lbSvc.getSupportedCodingSchemes();
        CodingSchemeRendering[] csra = lcsrl.getCodingSchemeRendering();
        for (int i = 0; i < csra.length; i++) {
            CodingSchemeRendering csr = csra[i];
            CodingSchemeSummary css = csr.getCodingSchemeSummary();

            if ((css.getFormalName() != null && css.getFormalName().compareTo(codingSchemeName) == 0)
                || (css.getLocalName() != null && css.getLocalName().compareTo(codingSchemeName) == 0)
                || (css.getCodingSchemeURI() != null && css.getCodingSchemeURI().compareTo(codingSchemeName) == 0)) {

	if (version == null) return Constants.PRODUCTION;

	String representsVersion = css.getRepresentsVersion();
                if (representsVersion.compareTo(version) == 0) {
		RenderingDetail rd = csr.getRenderingDetail();
		CodingSchemeTagList cstl = rd.getVersionTags();
		String tag_str = "";
		java.lang.String[] tags = cstl.getTag();
		if (tags == null)
			return "NOT ASSIGNED";
		if (tags.length > 0) {
			tag_str = "";
			for (int j = 0; j < tags.length; j++) {
				String version_tag = (String) tags[j];
				if (j == 0) {
					tag_str = version_tag;
				} else if (j == tags.length-1) {
					tag_str = tag_str + version_tag;
				} else {
					tag_str = tag_str + version_tag + "|";
				}
			}
		} else {
			return "<NOT ASSIGNED>";
		}
		return tag_str;
	}
            }
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    return "<NOT AVAILABLE>";
}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:49,代码来源:CodingSchemeDataUtils.java


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