public class JSPTreeNode extends Object implements JSPTreeNodeIF
JSPContentHandler| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
attr |
protected List<JSPTreeNodeIF> |
children |
protected boolean |
dontCloneTags |
protected String |
name |
protected JSPTreeNodeIF |
parent |
protected javax.servlet.jsp.tagext.TagSupport |
tag |
| Constructor and Description |
|---|
JSPTreeNode(String name,
JSPTreeNodeIF parent) |
JSPTreeNode(String name,
JSPTreeNodeIF parent,
boolean dontCloneTags) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
String value)
Add a attribute to this JSPTreeNode.
|
void |
addChild(JSPTreeNodeIF node)
Adds a child node to this JSPTreeNode.
|
Map<String,String> |
getAttributes()
Returns the attributes for this JSPTreeNode.
|
List<JSPTreeNodeIF> |
getChildren()
Gets the children (ordered) of this JSPTreeNode.
|
String |
getContent()
The string content attached to this JSPTreeNode.
|
JSPTreeNodeIF |
getParent()
Gets the parent node of this JSPTreeNode.
|
javax.servlet.jsp.tagext.TagSupport |
getTag()
Gets the tag that this JSPTreeNode represents.
|
String |
getTagName()
Gets the tag name that this JSPTreeNode represents.
|
JSPTreeNodeIF |
makeClone()
Returns a node of the same class with the same internal state,
but with a different tag object internally.
|
void |
setParent(JSPTreeNodeIF parent)
Sets the parent node of this JSPTreeNode.
|
void |
setTag(javax.servlet.jsp.tagext.TagSupport tag)
Sets the tag which this JSPTreeNode represents.
|
void |
setTagName(String name)
Sets the name of the tag which this JSPTreeNode represents.
|
String |
toString()
A string representation of this JSPTreeNode.
|
protected String name
protected JSPTreeNodeIF parent
protected List<JSPTreeNodeIF> children
protected javax.servlet.jsp.tagext.TagSupport tag
protected final boolean dontCloneTags
public JSPTreeNode(String name, JSPTreeNodeIF parent)
public JSPTreeNode(String name, JSPTreeNodeIF parent, boolean dontCloneTags)
public Map<String,String> getAttributes()
JSPTreeNodeIFgetAttributes in interface JSPTreeNodeIFpublic void addAttribute(String key, String value)
JSPTreeNodeIFaddAttribute in interface JSPTreeNodeIFpublic void setTagName(String name)
JSPTreeNodeIFsetTagName in interface JSPTreeNodeIFpublic String getTagName()
JSPTreeNodeIFgetTagName in interface JSPTreeNodeIFpublic javax.servlet.jsp.tagext.TagSupport getTag()
JSPTreeNodeIFgetTag in interface JSPTreeNodeIFpublic void setTag(javax.servlet.jsp.tagext.TagSupport tag)
JSPTreeNodeIFsetTag in interface JSPTreeNodeIFpublic JSPTreeNodeIF getParent()
JSPTreeNodeIFgetParent in interface JSPTreeNodeIFpublic void setParent(JSPTreeNodeIF parent)
JSPTreeNodeIFsetParent in interface JSPTreeNodeIFpublic void addChild(JSPTreeNodeIF node)
JSPTreeNodeIFaddChild in interface JSPTreeNodeIFpublic List<JSPTreeNodeIF> getChildren()
JSPTreeNodeIFgetChildren in interface JSPTreeNodeIFpublic String getContent()
JSPTreeNodeIFgetContent in interface JSPTreeNodeIFpublic String toString()
JSPTreeNodeIFtoString in interface JSPTreeNodeIFtoString in class Objectpublic JSPTreeNodeIF makeClone()
JSPTreeNodeIFmakeClone in interface JSPTreeNodeIF