org.elasticsearch.index.mapper.xcontent
Class ObjectMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.xcontent.ObjectMapper
All Implemented Interfaces:
ToXContent, IncludeInAllMapper, XContentMapper
Direct Known Subclasses:
RootObjectMapper

@ThreadSafe
public class ObjectMapper
extends java.lang.Object
implements XContentMapper, IncludeInAllMapper


Nested Class Summary
static class ObjectMapper.Builder<T extends ObjectMapper.Builder,Y extends ObjectMapper>
           
static class ObjectMapper.Defaults
           
static class ObjectMapper.TypeParser
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
XContentMapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static java.lang.String CONTENT_TYPE
           
 
Fields inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
protected ObjectMapper(java.lang.String name)
           
protected ObjectMapper(java.lang.String name, boolean enabled, boolean dynamic, ContentPath.Type pathType)
           
 
Method Summary
protected  void doMerge(ObjectMapper mergeWith, MergeContext mergeContext)
           
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 void includeInAll(java.lang.Boolean includeInAll)
           
 void merge(XContentMapper mergeWith, MergeContext mergeContext)
           
 java.lang.String name()
           
 void parse(ParseContext context)
           
 ObjectMapper putMapper(XContentMapper mapper)
           
 void toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom, XContentMapper... additionalMappers)
           
 void traverse(FieldMapperListener fieldMapperListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

ObjectMapper

protected ObjectMapper(java.lang.String name)

ObjectMapper

protected ObjectMapper(java.lang.String name,
                       boolean enabled,
                       boolean dynamic,
                       ContentPath.Type pathType)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface XContentMapper

includeInAll

public void includeInAll(java.lang.Boolean includeInAll)
Specified by:
includeInAll in interface IncludeInAllMapper

putMapper

public ObjectMapper putMapper(XContentMapper mapper)

traverse

public void traverse(FieldMapperListener fieldMapperListener)
Specified by:
traverse in interface XContentMapper

parse

public void parse(ParseContext context)
           throws java.io.IOException
Specified by:
parse in interface XContentMapper
Throws:
java.io.IOException

merge

public void merge(XContentMapper mergeWith,
                  MergeContext mergeContext)
           throws MergeMappingException
Specified by:
merge in interface XContentMapper
Throws:
MergeMappingException

doMerge

protected void doMerge(ObjectMapper mergeWith,
                       MergeContext mergeContext)

toXContent

public void toXContent(XContentBuilder builder,
                       ToXContent.Params params)
                throws java.io.IOException
Specified by:
toXContent in interface ToXContent
Throws:
java.io.IOException

toXContent

public void toXContent(XContentBuilder builder,
                       ToXContent.Params params,
                       ToXContent custom,
                       XContentMapper... additionalMappers)
                throws java.io.IOException
Throws:
java.io.IOException

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws java.io.IOException
Throws:
java.io.IOException