Interface Instance

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(String featureName, int index, Object value)
      Add an element at a certain position to the value of the feature
      void add​(String featureName, Object value)
      Add an element to the value of the feature
      void add​(org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
      Add an element at a certain position to the value of the feature
      void add​(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
      Add an element to the value of the feature
      Instance copy()
      Get the value of the feature which is given by its name
      <V> V evaluate​(String expression)
      Evaluate an OCL constraint with the instance as context
      <V> V get​(String featureName)
      Get the value of the feature which is given by its name
      <V> V get​(org.eclipse.emf.ecore.EStructuralFeature feature)
      Get the value of the feature
      Instance getContainer()
      Get the elements by which the instance is contained
      org.eclipse.emf.ecore.EReference getContainerReference()
      Get the reference by which the instance is contained
      org.eclipse.emf.common.util.EList<Instance> getContents()
      Get the elements which are contained by the instance
      org.eclipse.emf.ecore.EClass getEClass()
      Get the class to which the instance conforms
      org.eclipse.emf.common.util.EList<Instance> getInverse​(String referenceName)
      Get the inverse value of the reference
      org.eclipse.emf.common.util.EList<Instance> getInverse​(org.eclipse.emf.ecore.EReference reference)
      Get the inverse value of the reference
      Instance getLink​(String referenceName)
      Get the value of the feature which is given by its name
      Instance getLink​(org.eclipse.emf.ecore.EReference reference)
      Get the value of the feature which is given by its name
      org.eclipse.emf.common.util.EList<Instance> getLinks​(String referenceName)
      Get the value of the feature which is given by its name
      org.eclipse.emf.common.util.EList<Instance> getLinks​(org.eclipse.emf.ecore.EReference reference)
      Get the value of the feature which is given by its name
      org.eclipse.emf.common.util.EList<ReferenceSlot> getReferences()
      Returns the value of the 'References' reference list.
      ModelResource getResource()
      Get the resource in which this instance is contained
      Slot getSlot​(org.eclipse.emf.ecore.EStructuralFeature feature)
      Get the slot that conforms to the feature
      org.eclipse.emf.common.util.EList<Slot> getSlots()
      Returns the value of the 'Slots' containment reference list.
      Type getType()
      Returns the value of the 'Type' container reference.
      org.eclipse.emf.common.util.URI getUri()
      Returns the value of the 'Uri' attribute.
      String getUuid()
      Returns the value of the 'Uuid' attribute.
      boolean instanceOf​(String className)
      Check whether the instance is of a certain type (or its sub types)
      boolean instanceOf​(org.eclipse.emf.ecore.EClass eClass)
      Check whether the instance is of a certain type (or its sub types)
      boolean isProxy()
      Find out whether the instance is a proxy, i.e.
      boolean isSet​(org.eclipse.emf.ecore.EStructuralFeature feature)
      Check whether the value of a feature is set
      void migrate​(String className)
      Change the type of instance to a different class
      void migrate​(org.eclipse.emf.ecore.EClass eClass)
      Change the type of instance to a different class
      void remove​(String featureName, Object value)
      Remove an element from the value of the feature
      void remove​(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
      Remove an element at a certain position from the value of the feature
      void remove​(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
      Remove an element from the value of the feature
      void set​(String featureName, Object value)
      Set the value of a feature which is given by its name
      void set​(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
      Set the value of the feature
      void setType​(Type value)
      Sets the value of the 'Type' container reference.
      void setUri​(org.eclipse.emf.common.util.URI value)
      Sets the value of the 'Uri' attribute.
      void setUuid​(String value)
      Sets the value of the 'Uuid' attribute.
      <V> V unset​(org.eclipse.emf.ecore.EStructuralFeature feature)
      Unset the value of the feature
      void validate()
      Validate the elements rooted at the instance
      boolean validate​(org.eclipse.emf.common.util.DiagnosticChain chain)
      Validate the elements rooted at the instance (added all the violations to a diagnostic)
    • Method Detail

      • getSlots

        org.eclipse.emf.common.util.EList<Slot> getSlots()
        Returns the value of the 'Slots' containment reference list. The list contents are of type Slot. It is bidirectional and its opposite is 'Instance'.

        If the meaning of the 'Slots' containment reference list isn't clear, there really should be more of a description here...

        The slots defined by the instance
        Returns:
        the value of the 'Slots' containment reference list.
        See Also:
        MigrationPackage.getInstance_Slots(), Slot.getInstance()
      • getType

        Type getType()
        Returns the value of the 'Type' container reference. It is bidirectional and its opposite is 'Instances'.

        If the meaning of the 'Type' container reference isn't clear, there really should be more of a description here...

        The type container to which the instance belongs
        Returns:
        the value of the 'Type' container reference.
        See Also:
        setType(Type), MigrationPackage.getInstance_Type(), Type.getInstances()
      • setType

        void setType​(Type value)
        Sets the value of the 'Type' container reference.
        Parameters:
        value - the new value of the 'Type' container reference.
        See Also:
        getType()
      • getReferences

        org.eclipse.emf.common.util.EList<ReferenceSlot> getReferences()
        Returns the value of the 'References' reference list. The list contents are of type ReferenceSlot. It is bidirectional and its opposite is 'Values'.

        If the meaning of the 'References' reference list isn't clear, there really should be more of a description here...

        The slots from which the instance is referenced
        Returns:
        the value of the 'References' reference list.
        See Also:
        MigrationPackage.getInstance_References(), ReferenceSlot.getValues()
      • getUri

        org.eclipse.emf.common.util.URI getUri()
        Returns the value of the 'Uri' attribute.

        If the meaning of the 'Uri' attribute isn't clear, there really should be more of a description here...

        The Uniform Resource Identifier (URI) of the instance in case the instance is a proxy
        Returns:
        the value of the 'Uri' attribute.
        See Also:
        setUri(URI), MigrationPackage.getInstance_Uri()
      • setUri

        void setUri​(org.eclipse.emf.common.util.URI value)
        Sets the value of the 'Uri' attribute.
        Parameters:
        value - the new value of the 'Uri' attribute.
        See Also:
        getUri()
      • getUuid

        String getUuid()
        Returns the value of the 'Uuid' attribute.

        If the meaning of the 'Uuid' attribute isn't clear, there really should be more of a description here...

        The unique and unchangeable identifier of the instance
        Returns:
        the value of the 'Uuid' attribute.
        See Also:
        setUuid(String), MigrationPackage.getInstance_Uuid()
      • setUuid

        void setUuid​(String value)
        Sets the value of the 'Uuid' attribute.
        Parameters:
        value - the new value of the 'Uuid' attribute.
        See Also:
        getUuid()
      • get

        <V> V get​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Get the value of the feature
        Parameters:
        feature - Get the value of the feature
      • get

        <V> V get​(String featureName)
        Get the value of the feature which is given by its name
      • getInverse

        org.eclipse.emf.common.util.EList<Instance> getInverse​(org.eclipse.emf.ecore.EReference reference)
        Get the inverse value of the reference
      • getSlot

        Slot getSlot​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Get the slot that conforms to the feature
      • getEClass

        org.eclipse.emf.ecore.EClass getEClass()
        Get the class to which the instance conforms
      • set

        void set​(org.eclipse.emf.ecore.EStructuralFeature feature,
                 Object value)
        Set the value of the feature
      • set

        void set​(String featureName,
                 Object value)
        Set the value of a feature which is given by its name
      • isSet

        boolean isSet​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Check whether the value of a feature is set
      • unset

        <V> V unset​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Unset the value of the feature
      • add

        void add​(org.eclipse.emf.ecore.EStructuralFeature feature,
                 int index,
                 Object value)
        Add an element at a certain position to the value of the feature
      • add

        void add​(org.eclipse.emf.ecore.EStructuralFeature feature,
                 Object value)
        Add an element to the value of the feature
      • remove

        void remove​(org.eclipse.emf.ecore.EStructuralFeature feature,
                    Object value)
        Remove an element from the value of the feature
      • remove

        void remove​(org.eclipse.emf.ecore.EStructuralFeature feature,
                    int index)
        Remove an element at a certain position from the value of the feature
      • migrate

        void migrate​(org.eclipse.emf.ecore.EClass eClass)
        Change the type of instance to a different class
      • instanceOf

        boolean instanceOf​(org.eclipse.emf.ecore.EClass eClass)
        Check whether the instance is of a certain type (or its sub types)
      • getContainer

        Instance getContainer()
        Get the elements by which the instance is contained
      • getContents

        org.eclipse.emf.common.util.EList<Instance> getContents()
        Get the elements which are contained by the instance
      • validate

        void validate()
        Validate the elements rooted at the instance
      • validate

        boolean validate​(org.eclipse.emf.common.util.DiagnosticChain chain)
        Validate the elements rooted at the instance (added all the violations to a diagnostic)
      • getContainerReference

        org.eclipse.emf.ecore.EReference getContainerReference()
        Get the reference by which the instance is contained
      • getResource

        ModelResource getResource()
        Get the resource in which this instance is contained
      • isProxy

        boolean isProxy()
        Find out whether the instance is a proxy, i.e. has its URI set
      • migrate

        void migrate​(String className)
        Change the type of instance to a different class
      • getInverse

        org.eclipse.emf.common.util.EList<Instance> getInverse​(String referenceName)
        Get the inverse value of the reference
      • getLink

        Instance getLink​(String referenceName)
        Get the value of the feature which is given by its name
      • getLinks

        org.eclipse.emf.common.util.EList<Instance> getLinks​(String referenceName)
        Get the value of the feature which is given by its name
      • instanceOf

        boolean instanceOf​(String className)
        Check whether the instance is of a certain type (or its sub types)
      • add

        void add​(String featureName,
                 Object value)
        Add an element to the value of the feature
      • remove

        void remove​(String featureName,
                    Object value)
        Remove an element from the value of the feature
      • add

        void add​(String featureName,
                 int index,
                 Object value)
        Add an element at a certain position to the value of the feature
      • getLink

        Instance getLink​(org.eclipse.emf.ecore.EReference reference)
        Get the value of the feature which is given by its name
      • getLinks

        org.eclipse.emf.common.util.EList<Instance> getLinks​(org.eclipse.emf.ecore.EReference reference)
        Get the value of the feature which is given by its name
      • copy

        Instance copy()
        Get the value of the feature which is given by its name