Class BasicModelExtent

  • All Implemented Interfaces:
    ModelExtent

    public class BasicModelExtent
    extends Object
    implements ModelExtent
    Simple in-memory model extent implementation.
    Since:
    2.0
    Interface is not intended to be extended by clients.
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • BasicModelExtent

        public BasicModelExtent()
        Construct an empty extent, typically used as [out] model parameter.
      • BasicModelExtent

        public BasicModelExtent​(List<? extends EObject> contents)
        Construct new extent with initial contents
        Parameters:
        contents - the elements to be the contents of the created extent.
    • Method Detail

      • add

        public void add​(EObject element)
        Add a single element to this extent.
        Parameters:
        element - non-null element
      • getContents

        public List<EObject> getContents()
        Description copied from interface: ModelExtent
        The read-only view of this model extent's contents.
        Specified by:
        getContents in interface ModelExtent
        Returns:
        list of elements contained in this extent
      • setContents

        public void setContents​(List<? extends EObject> contents)
        Description copied from interface: ModelExtent
        Sets the contents of this model extent.
        Specified by:
        setContents in interface ModelExtent
        Parameters:
        contents - list of elements to become the contents of this extent