wt.visitor
Class WalkerFactory

java.lang.Object
  extended bywt.visitor.WalkerFactory
All Implemented Interfaces:
ApplicationContextChild

public final class WalkerFactory
extends Object
implements ApplicationContextChild



Supported API: true

Extendable: false


Field Summary
private  ApplicationContext applicationContext
           
static String BREADTH_FIRST_WALKER
          Delegation key used to indicate breadth first Walker implementation.
private static String CLASSNAME
           
static String DEFAULT_NODE_EXPANDER
          Delegation key used to indicate a default NodeExpander implementation.
static String DEFAULT_VISITOR
          Delegation key used to indicate a default Visitor implementation.
static String DEFAULT_WALKER
          Delegation key used to indicate a default Walker implementation.
static String DEPTH_FIRST_WALKER
          Delegation key used to indicate depth first Walker implementation.
private static String RESOURCE
           
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
WalkerFactory()
           
 
Method Summary
 ApplicationContext getApplicationContext()
          Gets the object for the association that plays role: applicationContext.
private  Walker newWalker(ApplicationContextServices a_services, Object a_requestor, String a_walkerType, String a_nodeExpanderType, Visitor a_visitor)
           
 Walker newWalker(Object a_requestor)
          Constructs a new instance of a Walker.
 Walker newWalker(Object a_requestor, String a_walkerType, String a_nodeExpanderType)
          Constructs a new instance of a Walker.
 Walker newWalker(Object a_requestor, String a_walkerType, String a_nodeExpanderType, String a_visitorType)
          Constructs a new instance of a Walker.
 Walker newWalker(Object a_requestor, String a_walkerType, String a_nodeExpanderType, String[] a_visitorTypes)
          Constructs a new instance of a Walker.
 void setApplicationContext(ApplicationContext a_ApplicationContext)
          Sets the object for the association that plays role: applicationContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

BREADTH_FIRST_WALKER

public static final String BREADTH_FIRST_WALKER
Delegation key used to indicate breadth first Walker implementation.

Supported API: false

See Also:
Constant Field Values

DEPTH_FIRST_WALKER

public static final String DEPTH_FIRST_WALKER
Delegation key used to indicate depth first Walker implementation.

Supported API: false

See Also:
Constant Field Values

DEFAULT_WALKER

public static final String DEFAULT_WALKER
Delegation key used to indicate a default Walker implementation.

Supported API: false

See Also:
Constant Field Values

DEFAULT_NODE_EXPANDER

public static final String DEFAULT_NODE_EXPANDER
Delegation key used to indicate a default NodeExpander implementation.

Supported API: false

See Also:
Constant Field Values

DEFAULT_VISITOR

public static final String DEFAULT_VISITOR
Delegation key used to indicate a default Visitor implementation.

Supported API: false

See Also:
Constant Field Values

applicationContext

private ApplicationContext applicationContext
Constructor Detail

WalkerFactory

public WalkerFactory()
Method Detail

newWalker

public Walker newWalker(Object a_requestor)
                 throws WTPropertyVetoException
Constructs a new instance of a Walker. The NodeExpander and Visitor instances are also constructed for the Walker. The ApplicationContextService is used to instantiate objects specified in a service properties file.

Supported API: true

Parameters:
a_requestor -
Returns:
Walker
Throws:
WTPropertyVetoException

newWalker

public Walker newWalker(Object a_requestor,
                        String a_walkerType,
                        String a_nodeExpanderType)
                 throws WTPropertyVetoException
Constructs a new instance of a Walker. The NodeExpander and Visitor instances are also constructed for the Walker. The ApplicationContextService is used to instantiate objects specified in a service properties file.

Supported API: true

Parameters:
a_requestor -
a_walkerType -
a_nodeExpanderType -
Returns:
Walker
Throws:
WTPropertyVetoException

newWalker

public Walker newWalker(Object a_requestor,
                        String a_walkerType,
                        String a_nodeExpanderType,
                        String a_visitorType)
                 throws WTPropertyVetoException
Constructs a new instance of a Walker. The NodeExpander and Visitor instances are also constructed for the Walker. The ApplicationContextService is used to instantiate objects specified in a service properties file.

Supported API: true

Parameters:
a_requestor -
a_walkerType -
a_nodeExpanderType -
a_visitorType -
Returns:
Walker
Throws:
WTPropertyVetoException

newWalker

public Walker newWalker(Object a_requestor,
                        String a_walkerType,
                        String a_nodeExpanderType,
                        String[] a_visitorTypes)
                 throws WTPropertyVetoException
Constructs a new instance of a Walker. The NodeExpander and Visitor instances are also constructed for the Walker. The ApplicationContextService is used to instantiate objects specified in a service properties file.

Supported API: true

Parameters:
a_requestor -
a_walkerType -
a_nodeExpanderType -
a_visitorTypes -
Returns:
Walker
Throws:
WTPropertyVetoException

getApplicationContext

public ApplicationContext getApplicationContext()
Gets the object for the association that plays role: applicationContext.

Supported API: false

Specified by:
getApplicationContext in interface ApplicationContextChild
Returns:
ApplicationContext

setApplicationContext

public void setApplicationContext(ApplicationContext a_ApplicationContext)
                           throws WTPropertyVetoException
Sets the object for the association that plays role: applicationContext.

Supported API: false

Specified by:
setApplicationContext in interface ApplicationContextChild
Parameters:
a_ApplicationContext -
Throws:
WTPropertyVetoException

newWalker

private Walker newWalker(ApplicationContextServices a_services,
                         Object a_requestor,
                         String a_walkerType,
                         String a_nodeExpanderType,
                         Visitor a_visitor)
                  throws WTPropertyVetoException
Throws:
WTPropertyVetoException