|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingList
Interface for Mapping
lists. Provides helper methods.
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 object)
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 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 |
Method Detail |
---|
Mapping get(Node origin, Node image)
origin
- Node origin.image
- Node image.
null
.Mapping add(Node origin, Node image)
origin
- Origin node.image
- Image node.
void add(Edge origin, Edge image)
origin
- Origin edge.image
- Image edge.Mapping add(Attribute origin, Attribute image)
origin
- Origin attribute.image
- Image attribute.
<E extends GraphElement> void add(E origin, E image)
origin
- Origin element.image
- Target element.Mapping remove(Node origin, Node image)
origin
- Origin node.image
- Image node.
void remove(Edge origin, Edge image)
origin
- Origin edge.image
- Image edge.Mapping remove(Attribute origin, Attribute image)
origin
- Origin attribute.image
- Image attribute.
<E extends GraphElement> void remove(E origin, E image)
origin
- Origin element.image
- Target element.Node getOrigin(Node image)
image
- Image node.
Edge getOrigin(Edge image)
image
- Image edge.
Attribute getOrigin(Attribute image)
image
- Image attribute.
<E extends GraphElement> E getOrigin(E object)
getOrigin(Node)
, getOrigin(Edge)
or
getOrigin(Attribute)
. It throws an
IllegalArgumentException
if the type of the
object is unknown.
object
- Image.
Node getImage(Node origin, Graph imageGraph)
origin
- Origin node.imageGraph
- Image graph.
Edge getImage(Edge origin, Graph imageGraph)
origin
- Origin edge.imageGraph
- Image graph.
Attribute getImage(Attribute origin, Graph imageGraph)
origin
- Origin attribute.imageGraph
- Image graph.
<E extends GraphElement> E getImage(E origin, Graph imageGraph)
#getImage(Node)
, #getImage(Edge)
or #getImage(Attribute)
. It throws an
IllegalArgumentException
if the type of the object is unknown.
origin
- Origin.imageGraph
- Image graph.
boolean isOnto(Graph imageGraph)
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 |