wt.graph.processor
Interface GraphProcessor

All Known Implementing Classes:
ObjectGraphProcessor, ObjectGraphTemplateProcessor

public interface GraphProcessor

API for ObjectGraphTemplateProcessor and ObjectGraphProcessor which produce a realized ObjectGraph given the root object and either an ObjectGraphTemplate (preview or application modes) or an ObjectGraph (application mode only)

Supported API: true

Extendable: false


Field Summary
static int BREADTH_FIRST_NAVIGATOR
          Used to specify a breadth first navigation.
static int DEPTH_FIRST_NAVIGATOR
          Used to specify a depth first navigation.
 
Method Summary
 ObjectGraph process(ObjectGraph graph, Persistable root, String graphImpl, String nodeImpl, String edgeImpl, boolean previewMode)
          The implementor of this method does the work of creating the ObjectGraph given the Persistable root object and an ObjectGraph which may be the ObjectGraphTemplate or the ObjectGraph that is to be further transformed (depending on type of GraphProcessor produced by the Factor).
 ObjectGraph process(ObjectGraph graph, Persistable root, String graphImpl, String nodeImpl, String edgeImpl, boolean previewMode, int type)
          The implementor of this method does the work of creating the ObjectGraph given the Persistable root object and an ObjectGraph which may be the ObjectGraphTemplate or the ObjectGraph that is to be further transformed (depending on type of GraphProcessor produced by the Factor).
 

Field Detail

DEPTH_FIRST_NAVIGATOR

public static final int DEPTH_FIRST_NAVIGATOR
Used to specify a depth first navigation.

Supported API: true

See Also:
Constant Field Values

BREADTH_FIRST_NAVIGATOR

public static final int BREADTH_FIRST_NAVIGATOR
Used to specify a breadth first navigation.

Supported API: true

See Also:
Constant Field Values
Method Detail

process

public ObjectGraph process(ObjectGraph graph,
                           Persistable root,
                           String graphImpl,
                           String nodeImpl,
                           String edgeImpl,
                           boolean previewMode)
                    throws ObjectGraphException
The implementor of this method does the work of creating the ObjectGraph given the Persistable root object and an ObjectGraph which may be the ObjectGraphTemplate or the ObjectGraph that is to be further transformed (depending on type of GraphProcessor produced by the Factor). Mode typically indicates PreviewMode or ApplicationMode. Walker type is DepthFirst.

Supported API: false

Parameters:
graph -
root -
graphImpl -
nodeImpl -
edgeImpl -
previewMode -
Returns:
ObjectGraph
Throws:
ObjectGraphException

process

public ObjectGraph process(ObjectGraph graph,
                           Persistable root,
                           String graphImpl,
                           String nodeImpl,
                           String edgeImpl,
                           boolean previewMode,
                           int type)
                    throws ObjectGraphException
The implementor of this method does the work of creating the ObjectGraph given the Persistable root object and an ObjectGraph which may be the ObjectGraphTemplate or the ObjectGraph that is to be further transformed (depending on type of GraphProcessor produced by the Factor). The int type specifies DepthFirst or BreadthFirst, while mode typically indicates PreviewMode or ApplicationMode.

Supported API: false

Parameters:
graph -
root -
graphImpl -
nodeImpl -
edgeImpl -
previewMode -
type -
Returns:
ObjectGraph
Throws:
ObjectGraphException