|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.visitor.BasicNodeExpander
This class implements NodeExpander by using an Expander and NodeLinkInfo delegates. The Expander is an interface used for selecting an implementation of the expand() method. The NodeLinkInfo interface specifies applicable assocation roles and the Expander instance to use for a given Persistable object.
Using this class, it is possible to completely customize a multi-level navigation by plugging-in the appropriate NodeLinkInfo and Expander implementations.
There is a tight coupling between the RoleLinkInfo and Expander objects
that are used within this class. The Expander requires a specific type
of roleObject for its implementation. The NodeLinkInfo is expected to
return RoleInfoObjects that have the appropriate type of roleObject instances.
Supported API: true
Extendable: true
wt.util.NodeLinkInfo
,
wt.util.Expander
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private NodeExpandInfo |
theNodeExpandInfo
|
Constructor Summary | |
BasicNodeExpander()
|
Method Summary | |
void |
expandNode(Persistable parentNode,
Vector links,
Vector nodes)
Expands the node returning all of the links and nodes associated with the parent node. |
void |
expandNode(Persistable parentNode,
Vector links,
Vector nodes,
ObjectGraphTemplate ogt)
|
NodeExpandInfo |
getNodeExpandInfo()
Gets the object for the association that plays role: theNodeExpandInfo. |
void |
setNodeExpandInfo(NodeExpandInfo a_NodeExpandInfo)
Sets the object for the association that plays role: theNodeExpandInfo. |
private void |
theNodeExpandInfoValidate(NodeExpandInfo a_NodeExpandInfo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private NodeExpandInfo theNodeExpandInfo
Constructor Detail |
public BasicNodeExpander()
Method Detail |
public NodeExpandInfo getNodeExpandInfo()
public void setNodeExpandInfo(NodeExpandInfo a_NodeExpandInfo) throws WTPropertyVetoException
a_NodeExpandInfo
-
WTPropertyVetoException
private void theNodeExpandInfoValidate(NodeExpandInfo a_NodeExpandInfo) throws WTPropertyVetoException
a_NodeExpandInfo
-
WTPropertyVetoException
public void expandNode(Persistable parentNode, Vector links, Vector nodes) throws WTException
expandNode
in interface NodeExpander
parentNode
- links
- nodes
-
WTException
public void expandNode(Persistable parentNode, Vector links, Vector nodes, ObjectGraphTemplate ogt) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |