public static class GraphSONMapper.Builder extends Object implements Mapper.Builder<GraphSONMapper.Builder>
Modifier and Type | Method and Description |
---|---|
GraphSONMapper.Builder |
addCustomModule(SimpleModule custom)
Supply a mapper module for serialization/deserialization.
|
GraphSONMapper.Builder |
addRegistry(IoRegistry registry)
Adds a vendor supplied
IoRegistry to the Mapper.Builder which enables it to check for
vendor custom serializers to add to the Mapper . |
GraphSONMapper |
create() |
GraphSONMapper.Builder |
embedTypes(boolean embedTypes)
Embeds Java types into generated JSON to clarify their origins.
|
GraphSONMapper.Builder |
loadCustomModules(boolean loadCustomModules)
Try to load
SimpleModule instances from the current classpath. |
GraphSONMapper.Builder |
normalize(boolean normalize)
Forces keys to be sorted.
|
GraphSONMapper.Builder |
version(GraphSONVersion version)
Set the version of GraphSON to use.
|
GraphSONMapper.Builder |
version(String version)
Set the version of GraphSON to use.
|
public GraphSONMapper.Builder addRegistry(IoRegistry registry)
IoRegistry
to the Mapper.Builder
which enables it to check for
vendor custom serializers to add to the Mapper
. All Io
implementations should expose
this method via this Mapper.Builder
so that it is compatible with Graph.io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I>)
.addRegistry
in interface Mapper.Builder<GraphSONMapper.Builder>
public GraphSONMapper.Builder version(GraphSONVersion version)
public GraphSONMapper.Builder version(String version)
public GraphSONMapper.Builder addCustomModule(SimpleModule custom)
public GraphSONMapper.Builder loadCustomModules(boolean loadCustomModules)
SimpleModule
instances from the current classpath. These are loaded in addition to
the one supplied to the #addCustomModule(com.fasterxml.jackson.databind.module.SimpleModule)
;public GraphSONMapper.Builder normalize(boolean normalize)
public GraphSONMapper.Builder embedTypes(boolean embedTypes)
public GraphSONMapper create()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.