Class AddEObjectEvent
- java.lang.Object
-
- com._1c.g5.v8.dt.form.mapping.core.event.AbstractEvent
-
- com._1c.g5.v8.dt.form.mapping.core.event.AddEObjectEvent
-
public class AddEObjectEvent extends AbstractEvent
The event for adding newEObject
object.
-
-
Constructor Summary
Constructors Constructor Description AddEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, int position, Object... values)
Creates a new event for addition of a set of objects.AddEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, Object value, int position)
Creates a new event.AddEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, int position, Object... values)
Creates a new event for addition of a set of objects.AddEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, Object value, int position)
Creates a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getArrayValue()
Gets the new objects as array.org.eclipse.emf.ecore.EStructuralFeature
getFeature()
Gets the feature of owner in which adding new object.org.eclipse.emf.ecore.EObject
getOwner()
Gets the owner in which adding new objects.int
getPosition()
Gets the position of a new objects in which adding new object.Object
getValue()
Gets the new objects.boolean
isArray()
Check the new object is array.-
Methods inherited from class com._1c.g5.v8.dt.form.mapping.core.event.AbstractEvent
getMapping
-
-
-
-
Constructor Detail
-
AddEObjectEvent
public AddEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, Object value, int position)
Creates a new event. Events creates on mapping.- Parameters:
mapping
- - the mapping which creates this event.featureOfOwner
- - the feature of owner for adds new object.owner
- - the owner in which adds new object.value
- - the new object.position
- - the position of a new object.
-
AddEObjectEvent
public AddEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, Object value, int position)
Creates a new event.- Parameters:
featureOfOwner
- - the feature of owner for adds new object.owner
- - the owner in which adds new object.value
- - the new object.position
- - the position of a new object.
-
AddEObjectEvent
public AddEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, int position, Object... values)
Creates a new event for addition of a set of objects.- Parameters:
featureOfOwner
- - the feature of owner for adds new objects.owner
- - the owner in which adds new objects.position
- - the position of a new objectsvalues
- - the array of new objects.
-
AddEObjectEvent
public AddEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, int position, Object... values)
Creates a new event for addition of a set of objects. Events creates on mapping.- Parameters:
mapping
- - the mapping which creates this event.featureOfOwner
- - the feature of owner for adds new objects.owner
- - the owner in which adds new objects.position
- - the position of a new objectsvalues
- - the array of new objects.
-
-
Method Detail
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
Gets the feature of owner in which adding new object.- Returns:
- the feature.
-
getOwner
public org.eclipse.emf.ecore.EObject getOwner()
Gets the owner in which adding new objects.- Returns:
- the owner.
-
getValue
public Object getValue()
Gets the new objects.- Returns:
- the new object.
-
getArrayValue
public Object[] getArrayValue()
Gets the new objects as array.- Returns:
- the new objects.
-
getPosition
public int getPosition()
Gets the position of a new objects in which adding new object.- Returns:
- the position.
-
isArray
public boolean isArray()
Check the new object is array.- Returns:
- the
true
if new objects is array.
-
-