public class FileNodeHandler extends NodeHandler
VCSTATE_ATTR
Constructor and Description |
---|
FileNodeHandler() |
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(VPTNode node,
java.io.Writer out)
Saves a file node to the config file.
|
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