Class RecursiveMappingRepresentation

  • Direct Known Subclasses:
    NodeRepresentation

    public class RecursiveMappingRepresentation
    extends org.neo4j.server.rest.repr.MappingRepresentation
    Custom convenience representation type. Must reside in this very package in order to use package private methods of the MappingSerializer.
    Author:
    faessler
    • Constructor Detail

      • RecursiveMappingRepresentation

        public RecursiveMappingRepresentation​(String type,
                                              Map<String,​?> map)
      • RecursiveMappingRepresentation

        protected RecursiveMappingRepresentation​(String type)
    • Method Detail

      • serialize

        protected void serialize​(org.neo4j.server.rest.repr.MappingSerializer serializer)
        Specified by:
        serialize in class org.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.
      • setUnderlyingMap

        protected void setUnderlyingMap​(Map<String,​Object> map)
      • 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)
      • getNumberRepresentation

        public static <T extends Number> org.neo4j.server.rest.repr.Representation getNumberRepresentation​(T value,
                                                                                                           Class<?> valueClass)