当前位置: 首页>>代码示例>>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;未经允许,请勿转载。