Package com.xmlmind.assembly

## Class Relationship

- java.lang.Object
- - com.xmlmind.assembly.Relationship

-     public final class Relationship
      extends Object

  Not part of the public, documented, API: representation of element `<relationship>`.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `String` | `association` |
    `Instance[]` | `instances` |
    `Element` | `source` |
    `String` | `type` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Relationship()` |
    `Relationship​(Element source)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `add​(Instance instance)` |
    `boolean` | `contains​(Instance instance)` |
    `boolean` | `equals​(Object other)` |
    `static int` | `indexOfInstance​(Instance[] instances, Instance instance)` |

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

      `getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### source

          public Element source

    - #### type

          public String type

    - #### association

          public String association

    - #### instances

          public Instance[] instances

  - ### Constructor Detail

    - #### Relationship

          public Relationship()

    - #### Relationship

          public Relationship​(Element source)

  - ### Method Detail

    - #### equals

          public boolean equals​(Object other)

      Overrides:
        `equals` in class `Object`

    - #### contains

          public boolean contains​(Instance instance)

    - #### add

          public void add​(Instance instance)

    - #### indexOfInstance

          public static int indexOfInstance​(Instance[] instances,
                                            Instance instance)