org.hibernate.search.elasticsearch.schema.impl.model

## Class TypeMapping

- java.lang.Object
- - org.hibernate.search.elasticsearch.schema.impl.model.TypeMapping

- Direct Known Subclasses:
    PropertyMapping

      public class TypeMapping
      extends Object

  An object representic Elasticsearch type mappings. See https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-type
  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TypeMapping()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addProperty(String name, PropertyMapping mapping)`
    `DynamicType` | `getDynamic()`
    `Map<String,PropertyMapping>` | `getProperties()`
    `void` | `removeProperty(String name)`
    `void` | `setDynamic(DynamicType dynamic)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TypeMapping

          public TypeMapping()

  - ### Method Detail

    - #### getProperties

          public Map<String,PropertyMapping> getProperties()

    - #### addProperty

          public void addProperty(String name,
                                  PropertyMapping mapping)

    - #### removeProperty

          public void removeProperty(String name)

    - #### getDynamic

          public DynamicType getDynamic()

    - #### setDynamic

          public void setDynamic(DynamicType dynamic)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved