org.neo4j.server.rest.repr
Class IndexRepresentation

java.lang.Object
  extended by org.neo4j.server.rest.repr.Representation
      extended by org.neo4j.server.rest.repr.MappingRepresentation
          extended by org.neo4j.server.rest.repr.IndexRepresentation
All Implemented Interfaces:
EntityRepresentation
Direct Known Subclasses:
NodeIndexRepresentation, RelationshipIndexRepresentation

public abstract class IndexRepresentation
extends MappingRepresentation
implements EntityRepresentation


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, 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
IndexRepresentation(String name, Map<String,String> type)
           
 
Method Summary
protected abstract  String propertyContainerType()
           
 String relativeUriFor(String key, String value, long entityId)
           
 ValueRepresentation selfUri()
           
protected  void serialize(MappingSerializer serializer)
           
 
Methods inherited from class org.neo4j.server.rest.repr.MappingRepresentation
stringMap
 
Methods inherited from class org.neo4j.server.rest.repr.Representation
emptyRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexRepresentation

public IndexRepresentation(String name,
                           Map<String,String> type)
Method Detail

serialize

protected void serialize(MappingSerializer serializer)
Specified by:
serialize in class MappingRepresentation

relativeUriFor

public String relativeUriFor(String key,
                             String value,
                             long entityId)

selfUri

public ValueRepresentation selfUri()
Specified by:
selfUri in interface EntityRepresentation

propertyContainerType

protected abstract String propertyContainerType()


Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.