|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.henshin.statespace.util.ResourceNavigator
public class ResourceNavigator
Helper class for navigating through resource contents. Supports depth-first traversal, skipping of subtrees, and back-tracking.
| Constructor Summary | |
|---|---|
ResourceNavigator(Resource resource,
boolean withNonContainment,
boolean withDerived)
Default constructor. |
|
| Method Summary | |
|---|---|
EObject |
backward()
Go one step backward. |
EObject |
forward()
Follow the first outgoing link in the current target object. |
int |
getIndex()
Get the index of the currently selected link. |
EReference |
getReference()
Get the reference of the currently selected link. |
EObject |
getSource()
Get the source object of the currently selected link. |
EObject |
getTarget()
Get the target object of the currently selected link. |
boolean |
isEnd()
Returns true is the end was reached. |
boolean |
isStart()
Returns true is the start was reached. |
EObject |
skip()
Skip the current target and proceed with the rest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceNavigator(Resource resource,
boolean withNonContainment,
boolean withDerived)
resource - Resource to be traversed.withNonContainment - Whether we want to traverse non-containment links.withDerived - Whether we shall include derived features.| Method Detail |
|---|
public EObject getSource()
null).public EObject getTarget()
null).public EReference getReference()
public int getIndex()
public boolean isStart()
true is the start was reached.
true if we are at the start.public boolean isEnd()
true is the end was reached.
true if we are at the end.public EObject forward()
skip()
and returns the result of this invocation.
public EObject skip()
public EObject backward()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||