org.elasticsearch.index.mapper.xcontent
Class XContentObjectMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.xcontent.XContentObjectMapper
All Implemented Interfaces:
XContentIncludeInAllMapper, XContentMapper, ToXContent

@ThreadSafe
public class XContentObjectMapper
extends java.lang.Object
implements XContentMapper, XContentIncludeInAllMapper


Nested Class Summary
static class XContentObjectMapper.Builder
           
static class XContentObjectMapper.Defaults
           
static class XContentObjectMapper.TypeParser
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
XContentMapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.util.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.util.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
protected XContentObjectMapper(java.lang.String name)
           
protected XContentObjectMapper(java.lang.String name, boolean enabled, boolean dynamic, ContentPath.Type pathType)
           
protected XContentObjectMapper(java.lang.String name, boolean enabled, boolean dynamic, ContentPath.Type pathType, FormatDateTimeFormatter[] dateTimeFormatters)
           
 
Method Summary
 void includeInAll(java.lang.Boolean includeInAll)
           
 void merge(XContentMapper mergeWith, MergeContext mergeContext)
           
 java.lang.String name()
           
 void parse(ParseContext context)
           
 XContentObjectMapper putMapper(XContentMapper mapper)
           
 void toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void toXContent(XContentBuilder builder, ToXContent.Params params, 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

XContentObjectMapper

protected XContentObjectMapper(java.lang.String name)

XContentObjectMapper

protected XContentObjectMapper(java.lang.String name,
                               boolean enabled,
                               boolean dynamic,
                               ContentPath.Type pathType)

XContentObjectMapper

protected XContentObjectMapper(java.lang.String name,
                               boolean enabled,
                               boolean dynamic,
                               ContentPath.Type pathType,
                               FormatDateTimeFormatter[] dateTimeFormatters)
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 XContentIncludeInAllMapper

putMapper

public XContentObjectMapper 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

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,
                       XContentMapper... additionalMappers)
                throws java.io.IOException
Throws:
java.io.IOException