org.qi4j.api.association

## Interface AssociationStateHolder

- All Superinterfaces:
    StateHolder

      public interface AssociationStateHolder
      extends StateHolder

  This represents the state of a entity (properties+associations).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterable<? extends Association<?>>` | `allAssociations()` Get all associations
    `Iterable<? extends ManyAssociation<?>>` | `allManyAssociations()` Get all ManyAssociations
    `Iterable<? extends NamedAssociation<?>>` | `allNamedAssociations()` Get all NmaedAssociations
    `<T> Association<T>` | `associationFor(AccessibleObject associationMethod)` Get an association for a specific accessor method
    `<T> ManyAssociation<T>` | `manyAssociationFor(AccessibleObject manyassociationMethod)` Get a many-association for a specific accessor method
    `<T> NamedAssociation<T>` | `namedAssociationFor(AccessibleObject namedassociationMethod)` Get a named-association for a specific accessor method

    - ### Methods inherited from interface org.qi4j.api.property.StateHolder

      `properties, propertyFor`

- - ### Method Detail

    - #### associationFor

          <T> Association<T> associationFor(AccessibleObject associationMethod)

      Get an association for a specific accessor method
      Parameters:
        `associationMethod` - for the association
      Returns:
        the association

    - #### allAssociations

          Iterable<? extends Association<?>> allAssociations()

      Get all associations
      Returns:
        iterable of associations

    - #### manyAssociationFor

          <T> ManyAssociation<T> manyAssociationFor(AccessibleObject manyassociationMethod)

      Get a many-association for a specific accessor method
      Parameters:
        `manyassociationMethod` - for the many-association
      Returns:
        the association

    - #### allManyAssociations

          Iterable<? extends ManyAssociation<?>> allManyAssociations()

      Get all ManyAssociations
      Returns:
        iterable of many-associations

    - #### namedAssociationFor

          <T> NamedAssociation<T> namedAssociationFor(AccessibleObject namedassociationMethod)

      Get a named-association for a specific accessor method
      Parameters:
        `namedassociationMethod` - for the named-association
      Returns:
        the association

    - #### allNamedAssociations

          Iterable<? extends NamedAssociation<?>> allNamedAssociations()

      Get all NmaedAssociations
      Returns:
        iterable of named-associations