|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.dynamic.ObjectTreeWalker
public class ObjectTreeWalker
Allows for traversal of object graphs
| Constructor Summary | |
|---|---|
init(ObjectManager objectManager, MethodInvoker methodInvoker)
Constructor |
|
| Method Summary | |
|---|---|
private MethodInvoker |
getMethodInvoker()
|
private ObjectManager |
getObjectManager()
|
private any |
getSystem()
|
private boolean |
invokeHas(TransferObject transfer, string name)
checks to see if the object has a record for a single collection |
private void |
setMethodInvoker(MethodInvoker methodInvoker)
|
private void |
setObjectManager(ObjectManager ObjectManager)
|
private void |
setSystem(any System)
|
private void |
traverse(TransferObject transfer, any visitor, string visitingMethod, struct visitArgs, numeric maxDepth, boolean topDown, boolean forceLoading, [numeric currentDepth='0'], [struct visitedHashs='[runtime expression]'])
traverses the object graph |
private void |
traverseCollection(TransferObject transfer, string name, boolean forceLoading, struct state)
traverses a collection of objects |
private void |
traverseSingle(TransferObject transfer, string name, boolean forceLoading, struct state)
traverses a single link to an object |
void |
visit(TransferObject transfer, any visitor, string visitingMethod, struct visitArgs, [numeric depth='0'], [boolean topDown='true'], [boolean forceLoading='false'])
visit each of the objects in the graph |
private void |
visitTransfer(TransferObject transfer, any visitor, string visitingMethod, struct visitArgs)
visit a single object with the method that is provided |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(ObjectManager objectManager, MethodInvoker methodInvoker)
objectManager - Need to object manager for making queriesmethodInvoker - The method invoker| Method Detail |
|---|
private MethodInvoker getMethodInvoker()
private ObjectManager getObjectManager()
private any getSystem()
private boolean invokeHas(TransferObject transfer, string name)
transfer - the transfer objectname - the name of the collectionprivate void setMethodInvoker(MethodInvoker methodInvoker)
methodInvokerprivate void setObjectManager(ObjectManager ObjectManager)
ObjectManagerprivate void setSystem(any System)
Systemprivate void traverse(TransferObject transfer, any visitor, string visitingMethod, struct visitArgs, numeric maxDepth, boolean topDown, boolean forceLoading, [numeric currentDepth='0'], [struct visitedHashs='[runtime expression]'])
transfer - the starting object to visitvisitor - the visitor objectvisitingMethod - the name of the method that is being visitedvisitArgs - visiting arguments, if there are anymaxDepth - the max depth to go totopDown - travel top down, rather than bottom upforceLoading - if not loaded, force loadingcurrentDepth - the max depth to go tovisitedHashs - A struct of the identity hash codes, so we know what has been hitprivate void traverseCollection(TransferObject transfer, string name, boolean forceLoading, struct state)
transfer - the transfer objectname - the name of the collectionforceLoading - if not loaded, force loadingstate - the state of the traversalprivate void traverseSingle(TransferObject transfer, string name, boolean forceLoading, struct state)
transfer - the transfer objectname - the name of the collectionforceLoading - if not loaded, force loadingstate - the state of the traversalpublic void visit(TransferObject transfer, any visitor, string visitingMethod, struct visitArgs, [numeric depth='0'], [boolean topDown='true'], [boolean forceLoading='false'])
transfer - the starting object to visitvisitor - the visitor objectvisitingMethod - the name of the method that is being visitedvisitArgs - visiting arguments, if there are anydepth - the max depth to go totopDown - travel top down, rather than bottom upforceLoading - if not loaded, force loadingprivate void visitTransfer(TransferObject transfer, any visitor, string visitingMethod, struct visitArgs)
transfer - the starting object to visitvisitor - the visitor objectvisitingMethod - the name of the method that is being visitedvisitArgs - visiting arguments, if there are any
|
Transfer version 1.1 | ||||
| FRAMES | |||||