本文整理汇总了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);
}
示例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);
}