Package com.enonic.xp.site

## Class XDataMapping

- java.lang.Object
- - com.enonic.xp.site.XDataMapping

-     @PublicApi
      public final class XDataMapping
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `XDataMapping.Builder` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `XDataMapping​(XDataMapping.Builder builder)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static XDataMapping.Builder` | `create()` |
    `boolean` | `equals​(Object o)` |
    `String` | `getAllowContentTypes()` |
    `Boolean` | `getOptional()` |
    `XDataName` | `getXDataName()` |
    `int` | `hashCode()` |

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

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XDataMapping

          public XDataMapping​(XDataMapping.Builder builder)

  - ### Method Detail

    - #### create

          public static XDataMapping.Builder create()

    - #### getXDataName

          public XDataName getXDataName()

    - #### getAllowContentTypes

          public String getAllowContentTypes()

    - #### getOptional

          public Boolean getOptional()

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`