public class GraphSONMapper extends Object implements Mapper<ObjectMapper>
ObjectMapper
which automatically registers the standard
GraphSONModule
for serializing Graph
elements. This class
can be used for generalized JSON serialization tasks that require meeting GraphSON standards.
Graph
implementations providing an IoRegistry
should register their SimpleModule
implementations to it as follows:
public class MyGraphIoRegistry extends AbstractIoRegistry {
public MyGraphIoRegistry() {
register(GraphSONIo.class, null, new MyGraphSimpleModule());
}
}
Modifier and Type | Class and Description |
---|---|
static class |
GraphSONMapper.Builder |
Modifier and Type | Method and Description |
---|---|
static GraphSONMapper.Builder |
build() |
ObjectMapper |
createMapper()
Create a new instance of the internal object mapper that an implementation represents.
|
TypeInfo |
getTypeInfo() |
GraphSONVersion |
getVersion() |
public ObjectMapper createMapper()
Mapper
createMapper
in interface Mapper<ObjectMapper>
public GraphSONVersion getVersion()
public static GraphSONMapper.Builder build()
public TypeInfo getTypeInfo()
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.