Package org.neo4j.server.rest.repr
Class RecursiveMappingRepresentation
- java.lang.Object
-
- org.neo4j.server.rest.repr.Representation
-
- org.neo4j.server.rest.repr.MappingRepresentation
-
- org.neo4j.server.rest.repr.RecursiveMappingRepresentation
-
- Direct Known Subclasses:
NodeRepresentation
public class RecursiveMappingRepresentation extends org.neo4j.server.rest.repr.MappingRepresentationCustom convenience representation type. Must reside in this very package in order to use package private methods of theMappingSerializer.- Author:
- faessler
-
-
Field Summary
-
Fields inherited from class org.neo4j.server.rest.repr.Representation
BOOLEAN, BOOLEAN_LIST, BYTE, BYTE_LIST, CHARACTER, CHARACTER_LIST, DOUBLE, DOUBLE_LIST, EXCEPTION, EXTENSION, EXTENSIONS_MAP, FLOAT, FLOAT_LIST, GRAPHDB, INDEX, INTEGER, INTEGER_LIST, LONG, LONG_LIST, MAP, NODE, NODE_INDEXES, NODE_LIST, PATH, PATH_LIST, PROPERTIES_MAP, RELATIONSHIP, RELATIONSHIP_INDEXES, RELATIONSHIP_LIST, RELATIONSHIP_TYPE, SHORT, SHORT_LIST, STRING, STRING_LIST, URI, URI_TEMPLATE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecursiveMappingRepresentation(String type)RecursiveMappingRepresentation(String type, Map<String,?> map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.neo4j.server.rest.repr.ListRepresentationgetIterableRepresentation(Iterable<?> value)static <T extends Number>
org.neo4j.server.rest.repr.RepresentationgetNumberRepresentation(T value, Class<?> valueClass)static org.neo4j.server.rest.repr.RepresentationgetObjectRepresentation(Object value)Map<String,?>getUnderlyingMap()Returns the underlying Java map object.protected voidserialize(String key, Object value, org.neo4j.server.rest.repr.MappingSerializer serializer)protected voidserialize(org.neo4j.server.rest.repr.MappingSerializer serializer)protected voidsetUnderlyingMap(Map<String,Object> map)
-
-
-
Method Detail
-
serialize
protected void serialize(org.neo4j.server.rest.repr.MappingSerializer serializer)
- Specified by:
serializein classorg.neo4j.server.rest.repr.MappingRepresentation
-
getUnderlyingMap
public Map<String,?> getUnderlyingMap()
Returns the underlying Java map object. This instance is always a Map<String,?>.- Returns:
- The underlying Java map object.
-
serialize
protected void serialize(String key, Object value, org.neo4j.server.rest.repr.MappingSerializer serializer)
-
getObjectRepresentation
public static org.neo4j.server.rest.repr.Representation getObjectRepresentation(Object value)
-
getIterableRepresentation
public static org.neo4j.server.rest.repr.ListRepresentation getIterableRepresentation(Iterable<?> value)
-
-