org.eclipse.viatra.transformation.runtime.emf.modelmanipulation

## Class SimpleModelManipulations

- java.lang.Object
- - org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractModelManipulations
  - - org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.SimpleModelManipulations

- All Implemented Interfaces:
    IModelManipulations

      public class SimpleModelManipulations
      extends AbstractModelManipulations

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractModelManipulations

      `engine`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleModelManipulations(ViatraQueryEngine engine)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `doAdd(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements)`
    `protected void` | `doAdd(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.lang.Object what, int index)`
    `protected void` | `doChangeIndex(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, int oldIndex, int newIndex)`
    `protected org.eclipse.emf.ecore.EObject` | `doCreate(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EClass clazz)`
    `protected org.eclipse.emf.ecore.EObject` | `doCreate(org.eclipse.emf.ecore.resource.Resource res, org.eclipse.emf.ecore.EClass clazz)`
    `protected void` | `doMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference)`
    `protected void` | `doMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference, int index)`
    `protected void` | `doMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.resource.Resource newContainer)`
    `protected void` | `doMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.resource.Resource newContainer, int index)`
    `protected void` | `doRemove(org.eclipse.emf.ecore.EObject object)` Removes an element from the containment hierarchy
    `protected void` | `doRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference)`
    `protected void` | `doRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, int index)`
    `protected void` | `doRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object element)` Remove a non-containment reference value
    `protected void` | `doSet(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)`

    - ### Methods inherited from class org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractModelManipulations

      `add, add, add, addTo, addTo, addTo, changeIndex, create, createChild, doMoveTo, getBaseEMFIndex, moveTo, moveTo, moveTo, moveTo, moveTo, remove, remove, remove, remove, set`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleModelManipulations

          public SimpleModelManipulations(ViatraQueryEngine engine)

  - ### Method Detail

    - #### doCreate

          protected org.eclipse.emf.ecore.EObject doCreate(org.eclipse.emf.ecore.resource.Resource res,
                                                           org.eclipse.emf.ecore.EClass clazz)
                                                    throws ModelManipulationException

      Specified by:
        `doCreate` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doCreate

          protected org.eclipse.emf.ecore.EObject doCreate(org.eclipse.emf.ecore.EObject container,
                                                           org.eclipse.emf.ecore.EReference reference,
                                                           org.eclipse.emf.ecore.EClass clazz)

      Specified by:
        `doCreate` in class `AbstractModelManipulations`

    - #### doAdd

          protected void doAdd(org.eclipse.emf.ecore.EObject container,
                               org.eclipse.emf.ecore.EStructuralFeature reference,
                               java.util.Collection<? extends java.lang.Object> elements)
                        throws ModelManipulationException

      Specified by:
        `doAdd` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doAdd

          protected void doAdd(org.eclipse.emf.ecore.EObject container,
                               org.eclipse.emf.ecore.EStructuralFeature reference,
                               java.lang.Object what,
                               int index)
                        throws ModelManipulationException

      Specified by:
        `doAdd` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doSet

          protected void doSet(org.eclipse.emf.ecore.EObject container,
                               org.eclipse.emf.ecore.EStructuralFeature feature,
                               java.lang.Object value)

      Specified by:
        `doSet` in class `AbstractModelManipulations`

    - #### doRemove

          protected void doRemove(org.eclipse.emf.ecore.EObject object)
                           throws ModelManipulationException

      Description copied from class: `AbstractModelManipulations`
      Removes an element from the containment hierarchy
      Specified by:
        `doRemove` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doRemove

          protected void doRemove(org.eclipse.emf.ecore.EObject container,
                                  org.eclipse.emf.ecore.EStructuralFeature reference)
                           throws ModelManipulationException

      Specified by:
        `doRemove` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doRemove

          protected void doRemove(org.eclipse.emf.ecore.EObject container,
                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                  java.lang.Object element)
                           throws ModelManipulationException

      Description copied from class: `AbstractModelManipulations`
      Remove a non-containment reference value
      Specified by:
        `doRemove` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doRemove

          protected void doRemove(org.eclipse.emf.ecore.EObject container,
                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                  int index)
                           throws ModelManipulationException

      Specified by:
        `doRemove` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doMoveTo

          protected void doMoveTo(org.eclipse.emf.ecore.EObject what,
                                  org.eclipse.emf.ecore.EObject newContainer,
                                  org.eclipse.emf.ecore.EReference reference)
                           throws ModelManipulationException

      Specified by:
        `doMoveTo` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doMoveTo

          protected void doMoveTo(org.eclipse.emf.ecore.EObject what,
                                  org.eclipse.emf.ecore.EObject newContainer,
                                  org.eclipse.emf.ecore.EReference reference,
                                  int index)
                           throws ModelManipulationException

      Specified by:
        `doMoveTo` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doMoveTo

          protected void doMoveTo(org.eclipse.emf.ecore.EObject what,
                                  org.eclipse.emf.ecore.resource.Resource newContainer)
                           throws ModelManipulationException

      Specified by:
        `doMoveTo` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doMoveTo

          protected void doMoveTo(org.eclipse.emf.ecore.EObject what,
                                  org.eclipse.emf.ecore.resource.Resource newContainer,
                                  int index)
                           throws ModelManipulationException

      Specified by:
        `doMoveTo` in class `AbstractModelManipulations`
      Throws:
        `ModelManipulationException`

    - #### doChangeIndex

          protected void doChangeIndex(org.eclipse.emf.ecore.EObject container,
                                       org.eclipse.emf.ecore.EStructuralFeature feature,
                                       int oldIndex,
                                       int newIndex)

      Specified by:
        `doChangeIndex` in class `AbstractModelManipulations`