Class GraphSONMapper
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper
 
- 
- All Implemented Interfaces:
- Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
 
 public class GraphSONMapper extends Object implements Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper> An extension to the standard JacksonObjectMapperwhich automatically registers the standardGraphSONModulefor serializingGraphelements. This class can be used for generalized JSON serialization tasks that require meeting GraphSON standards.Graphimplementations providing anIoRegistryshould register theirSimpleModuleimplementations to it as follows:public class MyGraphIoRegistry extends AbstractIoRegistry { public MyGraphIoRegistry() { register(GraphSONIo.class, null, new MyGraphSimpleModule()); } }- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGraphSONMapper.Builder
 - 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_MAX_NUMBER_LENGTH
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphSONMapper.Builderbuild()static GraphSONMapper.Builderbuild(GraphSONMapper mapper)Create a new Builder from a givenGraphSONMapper.org.apache.tinkerpop.shaded.jackson.databind.ObjectMappercreateMapper()Create a new instance of the internal object mapper that an implementation represents.TypeInfogetTypeInfo()GraphSONVersiongetVersion()
 
- 
- 
- 
Field Detail- 
DEFAULT_MAX_NUMBER_LENGTHpublic static final int DEFAULT_MAX_NUMBER_LENGTH - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createMapperpublic org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper createMapper() Description copied from interface:MapperCreate a new instance of the internal object mapper that an implementation represents.- Specified by:
- createMapperin interface- Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
 
 - 
getVersionpublic GraphSONVersion getVersion() 
 - 
buildpublic static GraphSONMapper.Builder build() 
 - 
buildpublic static GraphSONMapper.Builder build(GraphSONMapper mapper) Create a new Builder from a givenGraphSONMapper.- Returns:
- a new builder, with properties taken from the original mapper already applied.
 
 - 
getTypeInfopublic TypeInfo getTypeInfo() 
 
- 
 
-