|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.persist.NodeHandler
projectviewer.persist.FilterNodeHandler
public class FilterNodeHandler
Handler for filter configuration nodes.
Field Summary |
---|
Fields inherited from class projectviewer.persist.NodeHandler |
---|
VCSTATE_ATTR |
Constructor Summary | |
---|---|
FilterNodeHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class projectviewer.persist.NodeHandler |
---|
fixPath, startElement, startElement, writeAttr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterNodeHandler()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |