Package com.enonic.xp.schema.relationship

## Class RelationshipType

- java.lang.Object
- - com.enonic.xp.schema.BaseSchema<RelationshipTypeName>
  - - com.enonic.xp.schema.relationship.RelationshipType

-     @PublicApi
      public final class RelationshipType
      extends BaseSchema<RelationshipTypeName>

- - ### Nested Class Summary

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

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static RelationshipType.Builder` | `create()` |
    `static RelationshipType.Builder` | `create​(RelationshipType relationshipType)` |
    `boolean` | `equals​(Object o)` |
    `ContentTypeNames` | `getAllowedFromTypes()` |
    `ContentTypeNames` | `getAllowedToTypes()` |
    `String` | `getFromSemantic()` |
    `String` | `getToSemantic()` |
    `int` | `hashCode()` |

    - ### Methods inherited from class com.enonic.xp.schema.BaseSchema

      `getCreatedTime, getCreator, getDescription, getDescriptionI18nKey, getDisplayName, getDisplayNameI18nKey, getIcon, getModifiedTime, getModifier, getName`

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

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

- - ### Method Detail

    - #### getFromSemantic

          public String getFromSemantic()

    - #### getToSemantic

          public String getToSemantic()

    - #### getAllowedFromTypes

          public ContentTypeNames getAllowedFromTypes()

    - #### getAllowedToTypes

          public ContentTypeNames getAllowedToTypes()

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `BaseSchema<RelationshipTypeName>`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `BaseSchema<RelationshipTypeName>`

    - #### create

          public static RelationshipType.Builder create()

    - #### create

          public static RelationshipType.Builder create​(RelationshipType relationshipType)