org.elasticsearch.index.mapper.xcontent
Class ContentPath

java.lang.Object
  extended by org.elasticsearch.index.mapper.xcontent.ContentPath

@NotThreadSafe
public class ContentPath
extends java.lang.Object


Nested Class Summary
static class ContentPath.Type
           
 
Constructor Summary
ContentPath()
           
ContentPath(int offset)
          Constructs a json path with an offset.
 
Method Summary
 void add(java.lang.String name)
           
 java.lang.String fullPathAsText(java.lang.String name)
           
 java.lang.String pathAsText(java.lang.String name)
           
 ContentPath.Type pathType()
           
 void pathType(ContentPath.Type type)
           
 void remove()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPath

public ContentPath()

ContentPath

public ContentPath(int offset)
Constructs a json path with an offset. The offset will result an offset number of path elements to not be included in pathAsText(String).

Method Detail

reset

public void reset()

add

public void add(java.lang.String name)

remove

public void remove()

pathAsText

public java.lang.String pathAsText(java.lang.String name)

fullPathAsText

public java.lang.String fullPathAsText(java.lang.String name)

pathType

public ContentPath.Type pathType()

pathType

public void pathType(ContentPath.Type type)