當前位置: 首頁>>代碼示例>>Java>>正文


Java EdgeAttributesFragmentReader類代碼示例

本文整理匯總了Java中org.cxio.aspects.readers.EdgeAttributesFragmentReader的典型用法代碼示例。如果您正苦於以下問題:Java EdgeAttributesFragmentReader類的具體用法?Java EdgeAttributesFragmentReader怎麽用?Java EdgeAttributesFragmentReader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EdgeAttributesFragmentReader類屬於org.cxio.aspects.readers包,在下文中一共展示了EdgeAttributesFragmentReader類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createCXReader

import org.cxio.aspects.readers.EdgeAttributesFragmentReader; //導入依賴的package包/類
private static CxElementReader2 createCXReader (InputStream in) throws IOException {
		HashSet<AspectFragmentReader> readers = new HashSet<>(20);
		
		  readers.add(EdgesFragmentReader.createInstance());
		  readers.add(EdgeAttributesFragmentReader.createInstance());
		  readers.add(NetworkAttributesFragmentReader.createInstance());
		  readers.add(NodesFragmentReader.createInstance());
		  readers.add(NodeAttributesFragmentReader.createInstance());
		  
		  readers.add(new GeneralAspectFragmentReader<> (NdexNetworkStatus.ASPECT_NAME,
				NdexNetworkStatus.class));
		  readers.add(new GeneralAspectFragmentReader<> (NamespacesElement.ASPECT_NAME,NamespacesElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (FunctionTermElement.ASPECT_NAME,FunctionTermElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (CitationElement.ASPECT_NAME,CitationElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (SupportElement.ASPECT_NAME,SupportElement.class));
//		  readers.add(new GeneralAspectFragmentReader (ReifiedEdgeElement.ASPECT_NAME,ReifiedEdgeElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (EdgeCitationLinksElement.ASPECT_NAME,EdgeCitationLinksElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (EdgeSupportLinksElement.ASPECT_NAME,EdgeSupportLinksElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (NodeCitationLinksElement.ASPECT_NAME,NodeCitationLinksElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (NodeSupportLinksElement.ASPECT_NAME,NodeSupportLinksElement.class));
		  readers.add(new GeneralAspectFragmentReader<> (Provenance.ASPECT_NAME,Provenance.class));
		  return  new CxElementReader2(in, readers,false);
	}
 
開發者ID:ndexbio,項目名稱:ndex-rest,代碼行數:24,代碼來源:CXNetworkLoader.java

示例2: createCXReader

import org.cxio.aspects.readers.EdgeAttributesFragmentReader; //導入依賴的package包/類
private CxElementReader createCXReader () throws IOException {
	HashSet<AspectFragmentReader> readers = new HashSet<>(20);
	
	  readers.add(EdgesFragmentReader.createInstance());
	  readers.add(EdgeAttributesFragmentReader.createInstance());
	  readers.add(NetworkAttributesFragmentReader.createInstance());
	  readers.add(NodesFragmentReader.createInstance());
	  readers.add(NodeAttributesFragmentReader.createInstance());
	  
	  readers.add(new GeneralAspectFragmentReader (NdexNetworkStatus.ASPECT_NAME,
			NdexNetworkStatus.class));
	  readers.add(new GeneralAspectFragmentReader (NamespacesElement.ASPECT_NAME,NamespacesElement.class));
	  readers.add(new GeneralAspectFragmentReader (FunctionTermElement.ASPECT_NAME,FunctionTermElement.class));
	  readers.add(new GeneralAspectFragmentReader (CitationElement.ASPECT_NAME,CitationElement.class));
	  readers.add(new GeneralAspectFragmentReader (SupportElement.ASPECT_NAME,SupportElement.class));
	  readers.add(new GeneralAspectFragmentReader (ReifiedEdgeElement.ASPECT_NAME,ReifiedEdgeElement.class));
	  readers.add(new GeneralAspectFragmentReader (EdgeCitationLinksElement.ASPECT_NAME,EdgeCitationLinksElement.class));
	  readers.add(new GeneralAspectFragmentReader (EdgeSupportLinksElement.ASPECT_NAME,EdgeSupportLinksElement.class));
	  readers.add(new GeneralAspectFragmentReader (NodeCitationLinksElement.ASPECT_NAME,NodeCitationLinksElement.class));
	  readers.add(new GeneralAspectFragmentReader (NodeSupportLinksElement.ASPECT_NAME,NodeSupportLinksElement.class));
	  readers.add(new GeneralAspectFragmentReader (Provenance.ASPECT_NAME,Provenance.class));
	  		  
	  return  CxElementReader.createInstance(inputStream, true,
			   readers);
}
 
開發者ID:ndexbio,項目名稱:ndex-common,代碼行數:26,代碼來源:CXNetworkLoader.java


注:本文中的org.cxio.aspects.readers.EdgeAttributesFragmentReader類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。