本文整理匯總了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);
}