public class FilterNodeHandler extends NodeHandler
VCSTATE_ATTR
Constructor and Description |
---|
FilterNodeHandler() |
Modifier and Type | Method and Description |
---|---|
VPTNode |
createNode(org.xml.sax.Attributes attrs,
VPTProject project)
Instantiates a filter based on the given attributes.
|
java.lang.Class |
getNodeClass()
Filter nodes are handled differently; returns null.
|
java.lang.String |
getNodeName()
Returns the name of the filter node in the config file.
|
boolean |
hasChildren()
Filters don't have children.
|
boolean |
isChild()
Filters are not children of any node.
|
void |
saveNode(VPTFilterData filter,
java.io.Writer out)
Saves the filter to the output.
|
void |
saveNode(VPTNode node,
java.io.Writer out)
Saving filters is handled differently.
|
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(VPTFilterData filter, java.io.Writer out) throws java.io.IOException
java.io.IOException