|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> org.eclipse.emf.common.util.AbstractEList<E> org.eclipse.emf.common.util.BasicEList<E> org.eclipse.emf.common.notify.impl.NotifyingListImpl<E> org.eclipse.emf.ecore.util.NotifyingInternalEListImpl<E> org.eclipse.emf.ecore.util.EcoreEList<E> org.eclipse.emf.ecore.util.EObjectEList<E> org.eclipse.emf.ecore.util.EObjectContainmentEList<Mapping> org.eclipse.emf.henshin.model.impl.MappingContainmentListImpl
public class MappingContainmentListImpl
An implementation of the MappingList
interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EObjectContainmentEList |
---|
EObjectContainmentEList.Resolving<E>, EObjectContainmentEList.Unsettable<E> |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EcoreEList |
---|
EcoreEList.Dynamic<E>, EcoreEList.Generic<E>, EcoreEList.UnmodifiableEList<E> |
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList |
---|
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1> |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.ecore.util.EObjectEList |
---|
featureID |
Fields inherited from class org.eclipse.emf.ecore.util.EcoreEList |
---|
dataClass, owner |
Fields inherited from class org.eclipse.emf.common.util.BasicEList |
---|
data, size |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
MappingContainmentListImpl(InternalEObject owner,
int featureID)
Default constructor. |
Method Summary | ||
---|---|---|
Mapping |
add(Attribute origin,
Attribute image)
Create and add a new mapping between the origin and image attribute. |
|
void |
add(Edge origin,
Edge image)
Create and add a new mapping between the origin and image edge. |
|
|
add(E origin,
E image)
Create a mapping between two graph elements. |
|
Mapping |
add(Node origin,
Node image)
Create and add a new mapping between the origin and image node. |
|
Mapping |
get(Node origin,
Node image)
Find a mapping for a given node origin and image. |
|
Attribute |
getImage(Attribute origin,
Graph imageGraph)
Get the image of an attribute in a given target graph. |
|
Edge |
getImage(Edge origin,
Graph imageGraph)
Get the image of an edge in a given target graph. |
|
|
getImage(E origin,
Graph imageGraph)
Get the image of an untyped object in a target graph. |
|
Node |
getImage(Node origin,
Graph imageGraph)
Get the image of a node in a given target graph. |
|
Attribute |
getOrigin(Attribute image)
Get the origin of an attribute. |
|
|
getOrigin(E image)
Get the origin of an untyped object. |
|
Edge |
getOrigin(Edge image)
Find the origin of an edge. |
|
Node |
getOrigin(Node image)
Find the origin of a node. |
|
boolean |
isOnto(Graph imageGraph)
Check whether this map is 'onto' (surjective). |
|
Mapping |
remove(Attribute origin,
Attribute image)
Remove a mapping between the given origin and image attribute. |
|
void |
remove(Edge origin,
Edge image)
Remove a mapping between the given origin and image edge. |
|
|
remove(E origin,
E image)
Remove a mapping between two graph elements. |
|
Mapping |
remove(Node origin,
Node image)
Remove a mapping between the given origin and image node. |
Methods inherited from class org.eclipse.emf.ecore.util.EObjectContainmentEList |
---|
hasInverse, hasNavigableInverse, isContainment |
Methods inherited from class org.eclipse.emf.ecore.util.EObjectEList |
---|
canContainNull, getFeatureID, isEObject, isUnique, resolve, useEquals |
Methods inherited from class org.eclipse.emf.ecore.util.EcoreEList |
---|
contains, createNotification, createNotification, dispatchNotification, get, getEObject, getEStructuralFeature, getFeature, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, hasInstanceClass, hasManyInverse, hasProxies, indexOf, inverseAdd, inverseRemove, isInstance, isNotificationRequired, isSet, lastIndexOf, newData, resolve, resolve, resolveProxy, set, toArray, toArray, unset, validate |
Methods inherited from class org.eclipse.emf.ecore.util.NotifyingInternalEListImpl |
---|
basicContains, basicContainsAll, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArray |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
---|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, clear, createNotification, createNotificationChain, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeatureID, hasShadow, move, remove, removeAll, setUnique, shadowAdd, shadowRemove, shadowSet |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
---|
assign, basicGet, clone, data, get, grow, isEmpty, primitiveGet, setData, shrink, size |
Methods inherited from class org.eclipse.emf.common.util.AbstractEList |
---|
add, add, addAll, addAll, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, iterator, listIterator, listIterator, move, remove, retainAll, set, toString |
Methods inherited from class java.util.AbstractList |
---|
removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.util.EList |
---|
move, move |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Methods inherited from interface org.eclipse.emf.ecore.util.InternalEList |
---|
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, setUnique |
Constructor Detail |
---|
public MappingContainmentListImpl(InternalEObject owner, int featureID)
owner
- Owner of this mapping list.featureID
- Feature ID.Method Detail |
---|
public Mapping get(Node origin, Node image)
MappingList
get
in interface MappingList
origin
- Node origin.image
- Node image.
null
.public Mapping add(Node origin, Node image)
MappingList
add
in interface MappingList
origin
- Origin node.image
- Image node.
public void add(Edge origin, Edge image)
MappingList
add
in interface MappingList
origin
- Origin edge.image
- Image edge.public Mapping add(Attribute origin, Attribute image)
MappingList
add
in interface MappingList
origin
- Origin attribute.image
- Image attribute.
public <E extends GraphElement> void add(E origin, E image)
MappingList
add
in interface MappingList
origin
- Origin element.image
- Target element.public Mapping remove(Node origin, Node image)
MappingList
remove
in interface MappingList
origin
- Origin node.image
- Image node.
public void remove(Edge origin, Edge image)
MappingList
remove
in interface MappingList
origin
- Origin edge.image
- Image edge.public Mapping remove(Attribute origin, Attribute image)
MappingList
remove
in interface MappingList
origin
- Origin attribute.image
- Image attribute.
public <E extends GraphElement> void remove(E origin, E image)
MappingList
remove
in interface MappingList
origin
- Origin element.image
- Target element.public Node getImage(Node origin, Graph imageGraph)
MappingList
getImage
in interface MappingList
origin
- Origin node.imageGraph
- Image graph.
public Node getOrigin(Node image)
MappingList
getOrigin
in interface MappingList
image
- Image node.
public Edge getImage(Edge origin, Graph imageGraph)
MappingList
getImage
in interface MappingList
origin
- Origin edge.imageGraph
- Image graph.
public Edge getOrigin(Edge image)
MappingList
getOrigin
in interface MappingList
image
- Image edge.
public Attribute getImage(Attribute origin, Graph imageGraph)
MappingList
getImage
in interface MappingList
origin
- Origin attribute.imageGraph
- Image graph.
public Attribute getOrigin(Attribute image)
MappingList
getOrigin
in interface MappingList
image
- Image attribute.
public <E extends GraphElement> E getOrigin(E image)
MappingList
MappingList.getOrigin(Node)
, MappingList.getOrigin(Edge)
or
MappingList.getOrigin(Attribute)
. It throws an
IllegalArgumentException
if the type of the
object is unknown.
getOrigin
in interface MappingList
image
- Image.
public <E extends GraphElement> E getImage(E origin, Graph imageGraph)
MappingList
#getImage(Node)
, #getImage(Edge)
or #getImage(Attribute)
. It throws an
IllegalArgumentException
if the type of the object is unknown.
getImage
in interface MappingList
origin
- Origin.imageGraph
- Image graph.
public boolean isOnto(Graph imageGraph)
MappingList
isOnto
in interface MappingList
imageGraph
- The image graph.
true
if the map is onto.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |