|
|||||||||
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<Mapping> org.eclipse.emf.henshin.model.impl.MappingListImpl
public class MappingListImpl
An implementation of the MappingList
interface.
Nested Class Summary |
---|
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>, BasicEList.UnmodifiableEList<E> |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.common.util.BasicEList |
---|
data, size |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
MappingListImpl()
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.common.util.BasicEList |
---|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, newData, primitiveGet, remove, setData, setUnique, shrink, size, toArray, toArray |
Methods inherited from class org.eclipse.emf.common.util.AbstractEList |
---|
add, add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, iterator, listIterator, listIterator, move, remove, removeAll, resolve, retainAll, set, toString, useEquals, validate |
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 |
Constructor Detail |
---|
public MappingListImpl()
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 |