|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.MockCentralNode
public abstract class MockCentralNode
Base for the classes which store the JDOM Element instances that
are used to construct the domain model. These classes also function as the
input for the IMockCentralEditorOutline display, allowing the
user to select distinct parts of the model for viewing and editing. The
SetElement method is used to assign the Element,
set up the display value for the associated tree item and to construct any
necessary child instances from data stored in the Element.
| Field Summary | |
|---|---|
protected java.util.List<MockCentralNode> |
children
A list of all the MockCentralNode children of this node. |
protected boolean |
deleted
Value for whether the node has been deleted. |
protected org.jdom.Element |
element
The JDOM Element associated with this node. |
protected java.lang.String |
nodeDescription
A String describing this node. |
protected MockCentralNodeModel |
nodeModel
The MockCentralNodeModel modeling the jdom
Element data. |
protected NodeProblemManager |
nodeProblemManager
The NodeProblemManager used to manage any
NodeProblem objects associated with this node. |
protected IMockCentralNodeView |
nodeView
The IMockCentralNodeView used for displaying and editing the
modeled data. |
protected MockCentralNode |
parentNode
This node's parent MockCentralNode. |
| Constructor Summary | |
|---|---|
MockCentralNode()
|
|
| Method Summary | |
|---|---|
void |
activateChildNode(java.lang.String childName)
Activates the child child MockCentralTreeNode identified by
the parameter. |
abstract void |
createNodeDescription()
Creates the node description value. |
MockCentralNode |
getChildNodeOfName(java.lang.String childName)
Returns the child MockCentralNode from the list of children
that has the name (toString() value) matching the parameter. |
java.util.List<MockCentralNode> |
getChildren()
Returns the list of MockCentralNode children. |
org.jdom.Element |
getElement()
Returns the element for this node. |
abstract MockCentralNodeType |
getMockCentralNodeType()
Returns the MockCentralNodeType value identifying the type
for this node. |
java.lang.String |
getNodeDescription()
Returns a description for this instance. |
MockCentralNodeModel |
getNodeModel()
Returns the MockCentralNodeModel modeling the node data. |
NodeProblemManager |
getNodeProblemManager()
Returns the NodeProblemManager used to manage any
NodeProblem objects associated with this node. |
IMockCentralNodeView |
getNodeView()
Returns the IMockCentralNodeView used for displaying and
editing the node data. |
MockCentralNode |
getParentNode()
Returns the parent MockCentralNode. |
java.lang.String |
getPath()
Returns a String representing the path to this node within the node hierarchy. |
void |
initializeComponents()
Initializes the MVC components associated with this node. |
boolean |
isDeleted()
Returns the flag for whether this instance has been deleted. |
void |
setDeleted(boolean deleted)
Sets the flag for whether this instance has been deleted. |
void |
setElement(org.jdom.Element element)
Sets the jdom Element represented by this node, invokes the
createNodeDescription method to create the
toString value and iterates through the content of the
Element to create the list of child nodes. |
void |
setParentNode(MockCentralNode parentNode)
Sets the parent MockCentralNode. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected org.jdom.Element element
Element associated with this node.
protected java.lang.String nodeDescription
protected NodeProblemManager nodeProblemManager
NodeProblemManager used to manage any
NodeProblem objects associated with this node.
protected MockCentralNodeModel nodeModel
MockCentralNodeModel modeling the jdom
Element data.
protected IMockCentralNodeView nodeView
IMockCentralNodeView used for displaying and editing the
modeled data.
protected MockCentralNode parentNode
MockCentralNode.
protected java.util.List<MockCentralNode> children
MockCentralNode children of this node.
protected boolean deleted
| Constructor Detail |
|---|
public MockCentralNode()
| Method Detail |
|---|
public java.lang.String getNodeDescription()
public abstract MockCentralNodeType getMockCentralNodeType()
MockCentralNodeType value identifying the type
for this node.
MockCentralNodeType value identifying the type
for this node.public abstract void createNodeDescription()
public void setElement(org.jdom.Element element)
Element represented by this node, invokes the
createNodeDescription method to create the
toString value and iterates through the content of the
Element to create the list of child nodes.
element - the jdom element represented by this node.public org.jdom.Element getElement()
public void setParentNode(MockCentralNode parentNode)
MockCentralNode.
parentNode - the parent MockCentralNode.public MockCentralNode getParentNode()
MockCentralNode.
MockCentralNode.public java.util.List<MockCentralNode> getChildren()
MockCentralNode children.
MockCentralNode children.public MockCentralNode getChildNodeOfName(java.lang.String childName)
MockCentralNode from the list of children
that has the name (toString() value) matching the parameter.
childName - the name (toString() value) of the child
MockCentralNode to return.
MockCentralNode from the list of children.public java.lang.String toString()
toString in class java.lang.Objectpublic void initializeComponents()
public MockCentralNodeModel getNodeModel()
MockCentralNodeModel modeling the node data.
MockCentralNodeModel modeling the node data.public IMockCentralNodeView getNodeView()
IMockCentralNodeView used for displaying and
editing the node data.
IMockCentralNodeView used for displaying and
editing the node data.public void activateChildNode(java.lang.String childName)
MockCentralTreeNode identified by
the parameter.
childName - the name of the child MockCentralNode.public void setDeleted(boolean deleted)
deleted - whether this instance has been deleted.public boolean isDeleted()
public java.lang.String getPath()
public NodeProblemManager getNodeProblemManager()
NodeProblemManager used to manage any
NodeProblem objects associated with this node.
NodeProblemManager used to manage any
NodeProblem objects associated with this node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||