Interface IModelManipulations
-
- All Superinterfaces:
IEcoreManipulations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>
- All Known Implementing Classes:
AbstractModelManipulations,ModelManipulationWithEditingDomain,SimpleModelManipulations
public interface IModelManipulations extends IEcoreManipulations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>
Model manipulation interface for conventional EMF instance models.- No Implement:
- API may be extended in the future.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidadd(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements)Adds a collection of existing elements to a selected EStructuralFeature.default voidaddAllTo(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements)Adds a collection of existing elements to a selected EStructuralFeature.voidaddTo(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements)Adds a collection of existing elements to a selected EStructuralFeature.default voidmoveAllTo(java.util.Collection<org.eclipse.emf.ecore.EObject> what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference)Moves a collection of existing elements into the selected containment reference of the selected model object.voidmoveTo(java.util.Collection<org.eclipse.emf.ecore.EObject> what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference)Moves a collection of existing elements into the selected containment reference of the selected model object.
-
-
-
Method Detail
-
add
default void add(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements) throws ModelManipulationExceptionAdds a collection of existing elements to a selected EStructuralFeature. If the feature is an EReference, it must not be a containment reference.- Throws:
ModelManipulationException
-
addTo
void addTo(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements) throws ModelManipulationExceptionAdds a collection of existing elements to a selected EStructuralFeature. If the feature is an EReference, it must not be a containment reference.- Throws:
ModelManipulationException
-
addAllTo
default void addAllTo(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature reference, java.util.Collection<? extends java.lang.Object> elements) throws ModelManipulationExceptionDescription copied from interface:IEcoreManipulationsAdds a collection of existing elements to a selected EStructuralFeature. If the feature is an EReference, it must not be a containment reference.- Specified by:
addAllToin interfaceIEcoreManipulations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>- Throws:
ModelManipulationException- Since:
- 2.1
-
moveTo
void moveTo(java.util.Collection<org.eclipse.emf.ecore.EObject> what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference) throws ModelManipulationExceptionMoves a collection of existing elements into the selected containment reference of the selected model object.- Throws:
ModelManipulationException- Since:
- 2.1
-
moveAllTo
default void moveAllTo(java.util.Collection<org.eclipse.emf.ecore.EObject> what, org.eclipse.emf.ecore.EObject newContainer, org.eclipse.emf.ecore.EReference reference) throws ModelManipulationExceptionDescription copied from interface:IEcoreManipulationsMoves a collection of existing elements into the selected containment reference of the selected model object.- Specified by:
moveAllToin interfaceIEcoreManipulations<org.eclipse.emf.ecore.resource.Resource,org.eclipse.emf.ecore.EObject>- Throws:
ModelManipulationException- Since:
- 2.1
-
-