Interface ChildElementCollection<T extends ModelElementInstance>

    • Method Detail

      • isImmutable

        boolean isImmutable()
        Indicates whether the collection is immutable. If the collection is immutable, all state-altering operations such as Collection.add(Object) or Collection.remove(Object) will throw an UnsupportedOperationException.
        Returns:
        true if the collection is mutable, false otherwise.
      • getMinOccurs

        int getMinOccurs()
        Indicates the minimal element count of a collection. Returns a positive integer or '0'.
        Returns:
        the minimal element count of the collection.
      • getMaxOccurs

        int getMaxOccurs()
        Indicates the max element count of a collection. In a negative value is returned (like '-1'), the collection is unbounded.
        Returns:
        the max element count for this collection.
      • getChildElementType

        ModelElementType getChildElementType​(Model model)
        Get the model element type of the elements contained in this collection.
        Parameters:
        model - the model of the element
        Returns:
        the containing ModelElementType
      • getChildElementTypeClass

        java.lang.Class<T> getChildElementTypeClass()
        Get the class of the elements contained in this collection.
        Returns:
        the class of contained types
      • getParentElementType

        ModelElementType getParentElementType()
        Get the model element type of the element owns the collection
        Returns:
        the parent element of the collection