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:
        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:
        IllegalStateException - if the collection element type returned by getType() is not of type EntityType.