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


Java CodingSchemeRenderingList.getCodingSchemeRendering方法代码示例

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


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

示例1: getSchemeVersions

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
/**
 * Returns list of all versions associated with a scheme
 * @param uri
 * @return
 * @throws Exception
 */
public ArrayList<String> getSchemeVersions(String uri) throws Exception {
	ArrayList<String> list = new ArrayList<String>();

	LexBIGService lbSvc = RemoteServerUtil.createLexBIGService();

    CodingSchemeRenderingList csrl = lbSvc.getSupportedCodingSchemes();
    CodingSchemeRendering[] csrs = csrl.getCodingSchemeRendering();

    for (int i = 0; i < csrs.length; i++) {
        CodingSchemeRendering csr = csrs[i];
        String status = csr.getRenderingDetail().getVersionStatus().value();
        CodingSchemeSummary css = csr.getCodingSchemeSummary();
        if (status.equals("active")) {
         if (css.getCodingSchemeURI().equals(uri))
         	list.add(css.getRepresentsVersion());
        }
    }

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

示例2: getVersionListData

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的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

示例3: getLexCodingSchemeRenderings

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
public static <T extends ResourceQuery> CodingSchemeRendering[] getLexCodingSchemeRenderings(
		LexBIGService lexBigService, 
		VersionNameConverter nameConverter, 
		QueryData<T> queryData,
		MappingExtension lexMappingExtension,
		SortCriteria cts2SortCriteria){
	
	CodingSchemeRenderingList lexRenderingList = null;
	String cts2SystemName = queryData.getCts2SystemName();
	Set<ResolvedFilter> cts2Filters = queryData.getCts2Filters();
	
	try {
		lexRenderingList = lexBigService.getSupportedCodingSchemes();
	} catch (LBInvocationException e) {
		throw new RuntimeException(e);
	}
	
	lexRenderingList = CommonSearchFilterUtils.filterLexCodingSchemeRenderingList(lexRenderingList, cts2SystemName, lexMappingExtension);
	lexRenderingList = CommonSearchFilterUtils.filterLexCodingSchemeRenderingList(lexRenderingList, cts2Filters, nameConverter);
	
	if(queryData.getReadContext() != null){
		lexRenderingList = CommonSearchFilterUtils.filterLexCodingSchemeRenderingList(lexRenderingList, queryData.getReadContext());
	}

	return lexRenderingList.getCodingSchemeRendering();
}
 
开发者ID:NCIP,项目名称:lexevs-service,代码行数:27,代码来源:CommonResourceUtils.java

示例4: filterLexCodingSchemeRenderingList

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
public static CodingSchemeRenderingList filterLexCodingSchemeRenderingList(
		CodingSchemeRenderingList lexRenderingList, 
		Set<ResolvedFilter> cts2Filters,
		VersionNameConverter nameConverter) {
	
	if(lexRenderingList == null || cts2Filters == null){
		return lexRenderingList;
	}
	
	CodingSchemeRenderingList lexFilteredRenderingList = new CodingSchemeRenderingList();
	CodingSchemeRendering[] lexCodingSchemeRenderings = lexRenderingList.getCodingSchemeRendering();
	
	for (CodingSchemeRendering lexCodingSchemeRendering : lexCodingSchemeRenderings) {
		if(CommonSearchFilterUtils.applyFiltersToRendering(lexCodingSchemeRendering, cts2Filters, nameConverter)){
			lexFilteredRenderingList.addCodingSchemeRendering(lexCodingSchemeRendering);
		}
	}
	return lexFilteredRenderingList;
}
 
开发者ID:NCIP,项目名称:lexevs-service,代码行数:20,代码来源:CommonSearchFilterUtils.java

示例5: getVocabularyVersionByTag

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
public static String getVocabularyVersionByTag(String codingSchemeName, String ltag)
{
	 if (codingSchemeName == null) return null;
	 try {
		 //EVSApplicationService lbSvc = new RemoteServerUtil().createLexBIGService();
		 LexBIGService lbSvc = RemoteServerUtil.createLexBIGService();
		 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().compareTo(codingSchemeName) == 0 || css.getLocalName().compareTo(codingSchemeName) == 0)
			{
				if (ltag == null) return css.getRepresentsVersion();
				RenderingDetail rd = csr.getRenderingDetail();
				CodingSchemeTagList cstl = rd.getVersionTags();
				java.lang.String[] tags = cstl.getTag();
				for (int j=0; j<tags.length; j++)
				{
					String version_tag = (String) tags[j];
					if (version_tag.compareToIgnoreCase(ltag) == 0)
					{
						return css.getRepresentsVersion();
					}
				}
			}
		 }
     } catch (Exception e) {
		 e.printStackTrace();
	 }
	 _logger.debug("Version corresponding to tag " + ltag + " is not found " + " in " + codingSchemeName);
	 return null;
 }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:35,代码来源:SearchUtils.java

示例6: getVersionListData

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的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

示例7: getVocabularyVersionByTag

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的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

示例8: getVocabularyVersionByTag

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的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

示例9: getVocabularyVersionTag

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的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

示例10: getVocabularyVersionByTag

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
public String getVocabularyVersionByTag(String codingSchemeName,
      String ltag) {

if (codingSchemeName == null) {
	codingSchemeName = "NCI Thesaurus";
}

      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().compareTo(codingSchemeName) == 0
                  || css.getLocalName().compareTo(codingSchemeName) == 0
                  || 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(Constants.PRODUCTION) == 0
          & knt == 1) {
          return version;
      }
      return null;
  }
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:49,代码来源:ConceptDetails.java

示例11: displayCodingSchemes

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
/**
 * Displays a list of available coding schemes.
 * @return The ordered list of coding scheme summaries as displayed.
 * @throws LBException If an error occurs displaying the list.
 */
protected List<CodingSchemeSummary> displayCodingSchemes() throws LBException {
	List<CodingSchemeSummary> choices = new ArrayList<CodingSchemeSummary>();

	LexBIGService lbs = AppService.getLBSvc();
	CodingSchemeRenderingList schemes = lbs.getSupportedCodingSchemes();

	if (schemes.getCodingSchemeRenderingCount() == 0)
		Util.displayMessage("No coding schemes found.");
	else {

		Formatter f = new Formatter();

		String format = "%-5.5s|%-30.30s|%-25.25s|%-15.15s\n";
		Object[] hSep = new Object[] { Dash5, Dash30, Dash25, Dash15 };
		f.format(format, hSep);
		f.format(format, new Object[] { "#", "Local Name", "Version", "Tag" });
		f.format(format, hSep);
		CodingSchemeRendering[] csr = schemes.getCodingSchemeRendering();
		for (int i = 1; i <= csr.length; i++) {
			String nu = String.valueOf(i);

			CodingSchemeSummary css = csr[i-1].getCodingSchemeSummary();
			choices.add(css);

			// Evaluate local name
			String localName = css.getLocalName();
			if (localName != null && localName.length() > 30)
				localName = localName.substring(0, 28) + ">>";

			// Evaluate version
			String version = css.getRepresentsVersion();
			if (version != null && version.length() > 25)
				version = version.substring(0, 23) + ">>";

			// Evaluate tag(s)
			String[] tags = csr[i-1].getRenderingDetail().getVersionTags().getTag();
			String tag = tags.length > 0 ? tags[0] : "";
			if (tag != null && tag.length() > 15)
				tag = tag.substring(0, 13) + ">>";

			// Output the first line
			f.format(format, new Object[] { nu, localName, version, tag });

			// Output additional tags
			for (int j = 1; j < tags.length; j++) {
				tag = tags[j];
				if (tag != null && tag.length() > 10)
					tag = tag.substring(0, 8) + ">>";
				f.format(format, "", "", "", tag);
			}

			// Output separator
			f.format(format, hSep);
		}
		Util.displayMessage(f.out().toString());
		Util.displayMessage("");
		Util.displayMessage("NOTE: >> indicates column value exceeds the available width.");
	}
	return choices;

}
 
开发者ID:NCIP,项目名称:nci-term-browser,代码行数:67,代码来源:CodingSchemeSelectionMenu.java

示例12: print

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList; //导入方法依赖的package包/类
/**
 * Prints the.
 *
 * @param csrl the csrl
 */
public static void print(CodingSchemeRenderingList csrl){
	for(CodingSchemeRendering rendering : csrl.getCodingSchemeRendering()){
		print(rendering.getCodingSchemeSummary());
	}
}
 
开发者ID:NCIP,项目名称:camod,代码行数:11,代码来源:PrintUtility.java


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