Class GraphMLIo.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.structure.io.graphml.GraphMLIo.Builder
- All Implemented Interfaces:
Io.Builder<GraphMLIo>
- Enclosing class:
- GraphMLIo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Providers call this method in theGraph.io(Io.Builder)method to construct theIoinstance and return the value.Providers use this method to supply the current instance of theirGraphto the builder.Io.Builder<? extends Io>onMapper(Consumer<Mapper.Builder> onMapper) Allows aGraphimplementation to have full control over theMapper.Builderinstance.<V> booleanrequiresVersion(V version) GraphML does not have a version and therefore always returns false.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onMapper
Description copied from interface:Io.BuilderAllows aGraphimplementation to have full control over theMapper.Builderinstance. Typically, the implementation will just pass in itsIoRegistryimplementation so that theMapperthat gets built will have knowledge of any custom classes and serializers it may have. End-users should not use this method directly. If a user wants to register custom serializers, then such things can be done via calls toIo.mapper()after theIois constructed viaGraph.io(Io.Builder).- Specified by:
onMapperin interfaceIo.Builder<GraphMLIo>
-
graph
Description copied from interface:Io.BuilderProviders use this method to supply the current instance of theirGraphto the builder. End-users should not call this method directly.- Specified by:
graphin interfaceIo.Builder<GraphMLIo>
-
requiresVersion
public <V> boolean requiresVersion(V version) GraphML does not have a version and therefore always returns false. This default return also makes sense because GraphML does not use customIoRegistryinstances anyway which is the primary reason for calling this method by a graph provider.- Specified by:
requiresVersionin interfaceIo.Builder<GraphMLIo>
-
create
Description copied from interface:Io.BuilderProviders call this method in theGraph.io(Io.Builder)method to construct theIoinstance and return the value. End-users will typically not call this method.- Specified by:
createin interfaceIo.Builder<GraphMLIo>
-