|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.viewers.MockCentralTreeModel
public class MockCentralTreeModel
A Class used to model Mock Central node data that is to be displayed in a tree structure.
| Constructor Summary | |
|---|---|
MockCentralTreeModel(org.jdom.Document document,
boolean load)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.util.List<NodeProblem> |
collectNodeProblems()
Returns a list of all current NodeProblem instances in the
model. |
boolean |
exists(MockCentralNode node)
Returns whether the supplied MockCentralNode exists within
the model. |
java.lang.Object |
getChild(java.lang.Object parentNode,
int index)
Returns the child MockCentralNode at the supplied index
within the indicated parent. |
int |
getChildCount(java.lang.Object parentNode)
Returns the number of child MockCentralNode instances within
the supplied parent. |
org.jdom.Document |
getDocument()
Returns the JDOM Document. |
int |
getIndexOfChild(java.lang.Object parentNode,
java.lang.Object childNode)
Returns the index within the indicated parent MockCentralNode of the child MockCentralNode. |
FixtureNode |
getNamedFixtureNode(java.lang.String fixtureName)
Returns the FixtureNode which defines a Fixture with the
supplied name, if any. |
java.lang.Object |
getParent(java.lang.Object childNode)
Returns the parent MockCentralNode for the supplied child
MockCentralNode. |
java.lang.Object |
getRoot()
Returns the root of the model. |
void |
setDocument(org.jdom.Document document)
Sets the JDOM Document. |
void |
setRoot(java.lang.Object root)
Sets the root of the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockCentralTreeModel(org.jdom.Document document,
boolean load)
document - the JDOM Document containing the data for
this model.| Method Detail |
|---|
public void setDocument(org.jdom.Document document)
Document.
document - the JDOM Document.public org.jdom.Document getDocument()
Document.
Document.public void setRoot(java.lang.Object root)
root - the Object to set as the root.public java.lang.Object getRoot()
public boolean exists(MockCentralNode node)
MockCentralNode exists within
the model.
node - the MockCentralNode to test for existence.
MockCentralNode exists within
this model.
public java.lang.Object getChild(java.lang.Object parentNode,
int index)
MockCentralNode at the supplied index
within the indicated parent.
parentNode - the parent MockCentralNode.index - the index.
MockCentralNode at the supplied index
within the indicated parent MockCentralNode.public int getChildCount(java.lang.Object parentNode)
MockCentralNode instances within
the supplied parent.
parentNode - the parent MockCentralNode.
MockCentralNode instances within
the indicated parent MockCentralNode.
public int getIndexOfChild(java.lang.Object parentNode,
java.lang.Object childNode)
MockCentralNode of the child MockCentralNode.
parentNode - the parent MockCentralNode.childNode - the child MockCentralNode.
MockCentralNode of the child MockCentralNode.public java.lang.Object getParent(java.lang.Object childNode)
MockCentralNode for the supplied child
MockCentralNode.
childNode - the child MockCentralNode whose parent
MockCentralNode is to be returned.
MockCentralNode for the supplied child
MockCentralNode.public FixtureNode getNamedFixtureNode(java.lang.String fixtureName)
FixtureNode which defines a Fixture with the
supplied name, if any.
fixtureName - the name of Fixture.
FixtureNode which defines a Fixture with the
supplied name, if any.public java.util.List<NodeProblem> collectNodeProblems()
NodeProblem instances in the
model.
NodeProblem instances in the
model.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||