public class PropertyNodeHandler extends NodeHandler
VCSTATE_ATTR
Constructor and Description |
---|
PropertyNodeHandler() |
Modifier and Type | Method and Description |
---|---|
VPTNode |
createNode(org.xml.sax.Attributes attrs,
VPTProject project)
Instantiates a VPTNode based on the information given in the attribute
list.
|
java.lang.Class |
getNodeClass()
Returns the class of the nodes that should be delegated to this handler
when saving node data to the config file.
|
java.lang.String |
getNodeName()
Returns the name of the nodes that should be delegated to this handler
when loading configuration data.
|
boolean |
hasChildren()
Returns whether the node(s) handled by this handler are expected to
have children or not.
|
boolean |
isChild()
Returns whether the node is a child of nome other node or not.
|
void |
saveNode(java.lang.String name,
java.lang.Object value,
java.io.Writer out)
This actually saves the property to the config file...
|
void |
saveNode(VPTNode node,
java.io.Writer out)
Saving property nodes is going to be handled differently by the
persistence manager...
|
fixPath, startElement, startElement, writeAttr
public java.lang.String getNodeName()
getNodeName
in class NodeHandler
public java.lang.Class getNodeClass()
getNodeClass
in class NodeHandler
public boolean isChild()
isChild
in class NodeHandler
public boolean hasChildren()
hasChildren
in class NodeHandler
public VPTNode createNode(org.xml.sax.Attributes attrs, VPTProject project)
createNode
in class NodeHandler
attrs
- The attributes read from the config file.project
- The project that holds this node.public void saveNode(VPTNode node, java.io.Writer out) throws java.io.IOException
saveNode
in class NodeHandler
java.io.IOException
public void saveNode(java.lang.String name, java.lang.Object value, java.io.Writer out) throws java.io.IOException
java.io.IOException