Interface CollectionElementDefinition


  • public interface CollectionElementDefinition
    Represents a collection element.
    • Method Detail

      • getCollectionDefinition

        CollectionDefinition getCollectionDefinition()
        Returns the collection definition.
        Returns:
        the collection definition.
      • getType

        Type getType()
        Returns the collection element type.
        Returns:
        the collection element type
      • toAnyMappingDefinition

        AnyMappingDefinition toAnyMappingDefinition()
        If the element type returned by getType() is an AnyType, then the any mapping definition for the collection element is returned; otherwise, IllegalStateException is thrown.
        Returns:
        the any mapping definition for the collection element.
        Throws:
        java.lang.IllegalStateException - if the collection element type returned by getType() is not of type AnyType.
      • toEntityDefinition

        EntityDefinition toEntityDefinition()
        If the element type returned by getType() is an EntityType, then the entity definition for the collection element is returned; otherwise, IllegalStateException is thrown.
        Returns:
        the entity definition for the collection element.
        Throws:
        java.lang.IllegalStateException - if the collection element type returned by getType() is not of type EntityType.
      • toCompositeElementDefinition

        CompositeCollectionElementDefinition toCompositeElementDefinition()
        If the element type returned by getType() is a CompositeType, then the composite element definition for the collection element is returned; otherwise, IllegalStateException is thrown.
        Returns:
        the composite element definition for the collection element.
        Throws:
        java.lang.IllegalStateException - if the collection element type returned by getType() is not of type CompositeType.