|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.jato.model.TreeModelBase | +--com.iplanet.jato.model.TestTreeModelImpl
A simple TreeModel
implementation that can be used for quick
testing and diagnostics. This class may disappear in later versions of the
framework.
Fields inherited from interface com.iplanet.jato.model.TreeModel |
BREADTH_FIRST_TRAVERSAL, DEPTH_FIRST_TRAVERSAL, NEXT_CHILD, NEXT_SIBLING, ROOT_NODE_LEVEL, UNDEFINED_NODE_LEVEL |
Constructor Summary | |
TestTreeModelImpl()
|
|
TestTreeModelImpl(java.lang.String name)
|
Method Summary | |
void |
beforeRoot()
In addition to making the root node the next available node, this method should set the node level to UNDEFINED_NODE_LEVEL and call
setIterationComplete(false) if there are children available
to iterator over |
boolean |
firstChild()
/ public abstract boolean previousNode() throws ModelControlException; /** The implementation of this method should call
incrementNodeLevel() |
java.lang.String |
getName()
Returns the logical instance name of this model. |
java.lang.String |
getNodeID()
Return a unique ID for the current node within the backing data structure. |
java.lang.String |
getNodeName()
Return the logical name of the current node |
java.lang.String |
getNodeType()
Return the logical type of the current node |
java.lang.Object |
getValue(java.lang.String name)
Unilaterally returns a diagnostic name for the current node |
java.lang.Object[] |
getValues(java.lang.String name)
Unilaterally returns a single diagnostic name for the current node |
boolean |
isChildNode()
Check if the current node is a child of a parent node |
boolean |
isParentNode()
Check if the current node is a parent of other nodes |
boolean |
nextSibling()
The implementation of this method should leave the node level unchanged |
boolean |
parent()
The implementation of this method should call
decrementNodeLevel() |
void |
root()
In addition to making the root node the current node, this method should set the node level to ROOT_NODE_LEVEL |
void |
setName(java.lang.String value)
Sets the logical name of this model |
void |
setValue(java.lang.String name,
java.lang.Object value)
Currently unsupported; implementation is no-op |
void |
setValues(java.lang.String name,
java.lang.Object[] values)
Currently unsupported; implementation is no-op |
Methods inherited from class com.iplanet.jato.model.TreeModelBase |
clearCurrentNode, decrementNodeLevel, getCurrentNode, getNodeLevel, getTraversalType, incrementNodeLevel, isIterationComplete, nextNode, nextNode, setCurrentNode, setIterationComplete, setNodeLevel, setTraversalType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestTreeModelImpl()
public TestTreeModelImpl(java.lang.String name)
Method Detail |
public void beforeRoot() throws ModelControlException
TreeModelBase
UNDEFINED_NODE_LEVEL
and call
setIterationComplete(false)
if there are children available
to iterator overbeforeRoot
in class TreeModelBase
public void root() throws ModelControlException
TreeModelBase
ROOT_NODE_LEVEL
root
in class TreeModelBase
public java.lang.String getNodeName() throws ModelControlException
TreeModel
getNodeName
in class TreeModelBase
public java.lang.String getNodeType() throws ModelControlException
TreeModel
getNodeType
in class TreeModelBase
public java.lang.String getNodeID()
TreeModel
getNodeID
in class TreeModelBase
public boolean isParentNode()
TreeModel
isParentNode
in class TreeModelBase
public boolean isChildNode()
TreeModel
isChildNode
in class TreeModelBase
public boolean firstChild() throws ModelControlException
TreeModelBase
incrementNodeLevel()
firstChild
in class TreeModelBase
public boolean parent() throws ModelControlException
TreeModelBase
decrementNodeLevel()
parent
in class TreeModelBase
public boolean nextSibling() throws ModelControlException
TreeModelBase
nextSibling
in class TreeModelBase
public java.lang.String getName()
Model
ModelManager
may assign a name to a model based
on user request.com.iplanet.jato.model.Model
public void setName(java.lang.String value)
Model
com.iplanet.jato.model.Model
name
- The new name of this modelpublic java.lang.Object getValue(java.lang.String name)
com.iplanet.jato.model.Model
name
- The name of the value to returnpublic void setValue(java.lang.String name, java.lang.Object value) throws ValidationException
com.iplanet.jato.model.Model
name
- The name of the value to setvalue
- The value to set in this modelpublic java.lang.Object[] getValues(java.lang.String name)
com.iplanet.jato.model.Model
name
- The name of the value set to returnpublic void setValues(java.lang.String name, java.lang.Object[] values) throws ValidationException
com.iplanet.jato.model.Model
name
- The name of the value set to set in the modelvalues
- The set of values to set in this model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |