| java.lang.Object com.jcorporate.expresso.core.security.filters.FilterTreeNode
FilterTreeNode | public class FilterTreeNode implements java.io.Serializable(Code) | | This class provides a "filter parse tree" interface to the system.
It is a dual action object, it's a union of a node, and a leaf. Thus allowing
us to play with TreeMap/HashMap quickly.
Please Note: This class is unsynchronized for performance reasons, please
be careful when using in a multi-threaded environment outisde of the Filter
class.
author: Michael Rimov |
FilterTreeNode | public FilterTreeNode()(Code) | | |
dumpNode | public void dumpNode(Category log)(Code) | | Dumps the contents of the tree to the log. (ie dumps this node and all
subnodes.
Parameters: Category - - The log4j Category to dump to. |
dumpNode | public void dumpNode()(Code) | | Dumps a printout of the node and subnodes to System.out
|
dumpNode | public void dumpNode(FastStringBuffer stringBuffer, int depth)(Code) | | Dumps the contents of the tree to the log. uses depth to format
how many tabs in
|
getReplacementString | public String getReplacementString()(Code) | | A replacement string if it exists at this node. otherwise null |
getSubnode | public FilterTreeNode getSubnode(ReusableChar key)(Code) | | Parameters: key - The key to base this subnode after. the subnode that exists at this key, or null if it doesn't exist |
setReplacementString | public void setReplacementString(String newReplacementString) throws Exception(Code) | | Should be only called be the parse tree builder
Set the replacement string that corresponds to this node
Parameters: newReplacementString - The replacement string to put at this node throws: Exception - if a replacement string already exists for this |
setSubnode | public void setSubnode(ReusableChar key, FilterTreeNode newSubnode) throws Exception(Code) | | Set a subnode based upon the character key. Should be only called
by the parse tree builder.
Parameters: key - The character key to look up the subnode. Parameters: newSubNode - The FilterTreeNode to exist on that subnode |
subnodeExists | public boolean subnodeExists(ReusableChar key)(Code) | | true if a subnode exists for this key. |
|
|