|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.nodebuilder.RecursiveOp
public class RecursiveOp
Visits the hierarchy recursively and executes the operations on all nodes matching the filter. The recursion does not stop if a node does not match! The class has some static methods to build recursive operations easily.
Constructor Summary | |
---|---|
RecursiveOp(Content.ContentFilter filter,
NodeOperation[] childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching the filter. |
Method Summary | |
---|---|
void |
exec(Content context,
ErrorHandler errorHandler)
|
static NodeOperation |
recursive(Content.ContentFilter filter,
NodeOperation... childrenOps)
|
static NodeOperation |
recursive(ItemType type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type. |
static NodeOperation |
recursive(NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes excluding meta data and jcr base nodes. |
static NodeOperation |
recursive(java.lang.String type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type. |
NodeOperation |
then(NodeOperation... childrenOps)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecursiveOp(Content.ContentFilter filter, NodeOperation[] childrenOps)
Method Detail |
---|
public static NodeOperation recursive(NodeOperation... childrenOps)
public static NodeOperation recursive(java.lang.String type, NodeOperation... childrenOps)
public static NodeOperation recursive(ItemType type, NodeOperation... childrenOps)
public static NodeOperation recursive(Content.ContentFilter filter, NodeOperation... childrenOps)
public void exec(Content context, ErrorHandler errorHandler)
exec
in interface NodeOperation
public NodeOperation then(NodeOperation... childrenOps)
then
in interface NodeOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |