|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.plan.ImageableNavigation
The Navigation class provides a set of utilities for retrieving elements from imageable graphs via
directed graph nodes.
A directed graph node, is a child node in a graph node tree. It represents a position in an imageable graph.
Constructor Summary | |
ImageableNavigation()
|
Method Summary | |
static java.util.List |
findDescendantsOf(Imageable originImageable,
GraphNode leafNode)
Returns a List of all the Imageable instances than can be reached by the given leafNode value. A leaf node is a node in a graph node tree. |
static java.lang.Object |
getChild(GraphNode graphNode,
Imageable parentImageable)
Returns the child object referenced by the given GraphNode instance from the given parentImageable. If the graphNode references a contained element, it will NOT be extracted from the container. |
static java.lang.Object |
getChildNarrow(GraphNode graphNode,
Imageable parentImageable)
Returns the child object referenced by the given GraphNode instance from the given parentImageable. If the graphNode references a contained element (by index or key), it will be extracted from the container (thus narrowing). |
static void |
setChild(GraphNode graphNode,
Imageable parentImageable,
java.lang.Object child)
Sets the given childImageable on the parentImageable at the location referenced by the graphNode parameter. Note the child parameter may be null. |
static void |
setChildImageable(GraphNode graphNode,
Imageable parentImageable,
Imageable childImageable)
Sets the given childImageable on the parentImageable at the location referenced by the graphNode parameter. Note the childImageable may not be null if the graphNode references a position in a List. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageableNavigation()
Method Detail |
public static final java.util.List findDescendantsOf(Imageable originImageable, GraphNode leafNode) throws GraphException
originImageable
- leafNode
-
GraphException
public static final java.lang.Object getChildNarrow(GraphNode graphNode, Imageable parentImageable) throws EdgeNotFoundException, GraphException
graphNode
- parentImageable
-
EdgeNotFoundException
GraphException
public static final java.lang.Object getChild(GraphNode graphNode, Imageable parentImageable) throws EdgeNotFoundException, GraphException
graphNode
- parentImageable
-
EdgeNotFoundException
GraphException
public static final void setChildImageable(GraphNode graphNode, Imageable parentImageable, Imageable childImageable) throws EdgeNotFoundException, GraphException
graphNode
- parentImageable
- childImageable
-
EdgeNotFoundException
GraphException
public static final void setChild(GraphNode graphNode, Imageable parentImageable, java.lang.Object child) throws EdgeNotFoundException, GraphException
graphNode
- parentImageable
- child
-
EdgeNotFoundException
GraphException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |