Class Mapper

    • Constructor Detail

      • Mapper

        public Mapper​(String simpleName)
    • Method Detail

      • simpleName

        public final String simpleName()
        Returns the simple name, which identifies this mapper against other mappers at the same level in the mappers hierarchy TODO: make this protected once Mapper and FieldMapper are merged together
      • name

        public abstract String name()
        Returns the canonical name which uniquely identifies the mapper against other mappers in a type.
      • typeName

        public abstract String typeName()
        Returns a name representing the type of this mapper.
      • merge

        public abstract Mapper merge​(Mapper mergeWith)
        Return the merge of mergeWith into this. Both this and mergeWith will be left unmodified.
      • updateFieldType

        public abstract Mapper updateFieldType​(Map<String,​MappedFieldType> fullNameToFieldType)
        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.