Class ObjectMapper

    • Method Detail

      • clone

        protected ObjectMapper clone()
        clone in class java.lang.Object
      • mappingUpdate

        public ObjectMapper mappingUpdate​(Mapper mapper)
        Build a mapping update with the provided sub mapping update.
      • name

        public java.lang.String name()
        Description copied from class: Mapper
        Returns the canonical name which uniquely identifies the mapper against other mappers in a type.
        Specified by:
        name in class Mapper
      • typeName

        public java.lang.String typeName()
        Description copied from class: Mapper
        Returns a name representing the the type of this mapper.
        Specified by:
        typeName in class Mapper
      • isEnabled

        public boolean isEnabled()
      • getMapper

        public Mapper getMapper​(java.lang.String field)
      • includeInAll

        public java.lang.Boolean includeInAll()
      • nestedTypeFilter

        public nestedTypeFilter()
      • putMapper

        protected void putMapper​(Mapper mapper)
      • iterator

        public java.util.Iterator<Mapper> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Mapper>
      • fullPath

        public java.lang.String fullPath()
      • nestedTypePathAsString

        public java.lang.String nestedTypePathAsString()
      • getParentObjectMapper

        public ObjectMapper getParentObjectMapper​(MapperService mapperService)
        Returns the parent ObjectMapper instance of the specified object mapper or null if there isn't any.
      • parentObjectMapperAreNested

        public boolean parentObjectMapperAreNested​(MapperService mapperService)
        Returns whether all parent objects fields are nested too.
      • merge

        public ObjectMapper merge​(Mapper mergeWith,
                                  boolean updateAllTypes)
        Description copied from class: Mapper
        Return the merge of mergeWith into this. Both this and mergeWith will be left unmodified.
        Specified by:
        merge in class Mapper
      • doMerge

        protected void doMerge​(ObjectMapper mergeWith,
                               boolean updateAllTypes)
      • updateFieldType

        public ObjectMapper updateFieldType​(java.util.Map<java.lang.String,​MappedFieldType> fullNameToFieldType)
        Description copied from class: Mapper
        Update the field type of this mapper. This is necessary because some mapping updates can modify mappings across several types. This method must return a copy of the mapper so that the current mapper is not modified.
        Specified by:
        updateFieldType in class Mapper