Class SimpleModelManipulations
- java.lang.Object
-
- org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractEcoreManipulations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>
-
- org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractModelManipulations
-
- org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.SimpleModelManipulations
-
- All Implemented Interfaces:
IEcoreManipulations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>,IEcoreReadOperations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>,IModelManipulations,IModelReadOperations
public class SimpleModelManipulations extends AbstractModelManipulations
-
-
Field Summary
-
Fields inherited from class org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractModelManipulations
engine
-
-
Constructor Summary
Constructors Constructor Description SimpleModelManipulations(ViatraQueryEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoAdd(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.lang.Object what, int index)protected voiddoAdd(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements)protected voiddoChangeIndex(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, int oldIndex, int newIndex)protected intdoCount(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature)protected org.eclipse.emf.ecore.EObjectdoCreate(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EClass clazz)protected org.eclipse.emf.ecore.EObjectdoCreate(org.eclipse.emf.ecore.resource.Resource res, org.eclipse.emf.ecore.EClass clazz)protected booleandoIsSetTo(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)protected voiddoMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference)protected voiddoMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference, int index)protected voiddoMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.resource.Resource newContainer)protected voiddoMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.resource.Resource newContainer, int index)protected voiddoRemove(org.eclipse.emf.ecore.EObject object)Removes an element from the containment hierarchyprotected voiddoRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference)protected voiddoRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, int index)protected voiddoRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object element)Remove a non-containment reference valueprotected voiddoSet(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)protected java.util.stream.Stream<? extends java.lang.Object>doStream(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature)-
Methods inherited from class org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractModelManipulations
addTo, addTo, addTo, changeIndex, count, create, createChild, doMoveTo, eClass, getBaseEMFIndex, getSlotValuesInternal, isSetTo, moveTo, moveTo, moveTo, moveTo, moveTo, remove, remove, remove, remove, set, stream
-
Methods inherited from class org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.AbstractEcoreManipulations
isEObjectClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.IEcoreManipulations
add, add, addAll
-
Methods inherited from interface org.eclipse.viatra.transformation.runtime.emf.modelmanipulation.IModelManipulations
add, addAllTo, moveAllTo
-
-
-
-
Constructor Detail
-
SimpleModelManipulations
public SimpleModelManipulations(ViatraQueryEngine engine)
-
-
Method Detail
-
doCount
protected int doCount(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature)- Specified by:
doCountin classAbstractModelManipulations
-
doStream
protected java.util.stream.Stream<? extends java.lang.Object> doStream(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature)- Specified by:
doStreamin classAbstractModelManipulations
-
doIsSetTo
protected boolean doIsSetTo(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)- Specified by:
doIsSetToin classAbstractModelManipulations
-
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:
doCreatein classAbstractModelManipulations- 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:
doCreatein classAbstractModelManipulations
-
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:
doAddin classAbstractModelManipulations- 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:
doAddin classAbstractModelManipulations- Throws:
ModelManipulationException
-
doSet
protected void doSet(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)- Specified by:
doSetin classAbstractModelManipulations
-
doRemove
protected void doRemove(org.eclipse.emf.ecore.EObject object) throws ModelManipulationExceptionDescription copied from class:AbstractModelManipulationsRemoves an element from the containment hierarchy- Specified by:
doRemovein classAbstractModelManipulations- Throws:
ModelManipulationException
-
doRemove
protected void doRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference) throws ModelManipulationException- Specified by:
doRemovein classAbstractModelManipulations- Throws:
ModelManipulationException
-
doRemove
protected void doRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object element) throws ModelManipulationExceptionDescription copied from class:AbstractModelManipulationsRemove a non-containment reference value- Specified by:
doRemovein classAbstractModelManipulations- Throws:
ModelManipulationException
-
doRemove
protected void doRemove(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, int index) throws ModelManipulationException- Specified by:
doRemovein classAbstractModelManipulations- 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:
doMoveToin classAbstractModelManipulations- 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:
doMoveToin classAbstractModelManipulations- Throws:
ModelManipulationException
-
doMoveTo
protected void doMoveTo(org.eclipse.emf.ecore.EObject what, org.eclipse.emf.ecore.resource.Resource newContainer) throws ModelManipulationException- Specified by:
doMoveToin classAbstractModelManipulations- 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:
doMoveToin classAbstractModelManipulations- Throws:
ModelManipulationException
-
doChangeIndex
protected void doChangeIndex(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature, int oldIndex, int newIndex)- Specified by:
doChangeIndexin classAbstractModelManipulations
-
-