Package net.ontopia.utils.ontojsp
Class JSPTreeNode
java.lang.Object
net.ontopia.utils.ontojsp.JSPTreeNode
- All Implemented Interfaces:
JSPTreeNodeIF
INTERNAL: Tree node representing a JSP tag.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JSPTreeNodeIF>protected final booleanprotected Stringprotected JSPTreeNodeIFprotected javax.servlet.jsp.tagext.TagSupport -
Constructor Summary
ConstructorsConstructorDescriptionJSPTreeNode(String name, JSPTreeNodeIF parent) JSPTreeNode(String name, JSPTreeNodeIF parent, boolean dontCloneTags) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String key, String value) Add a attribute to this JSPTreeNode.voidaddChild(JSPTreeNodeIF node) Adds a child node to this JSPTreeNode.Returns the attributes for this JSPTreeNode.Gets the children (ordered) of this JSPTreeNode.The string content attached to this JSPTreeNode.Gets the parent node of this JSPTreeNode.javax.servlet.jsp.tagext.TagSupportgetTag()Gets the tag that this JSPTreeNode represents.Gets the tag name that this JSPTreeNode represents.Returns a node of the same class with the same internal state, but with a different tag object internally.voidsetParent(JSPTreeNodeIF parent) Sets the parent node of this JSPTreeNode.voidsetTag(javax.servlet.jsp.tagext.TagSupport tag) Sets the tag which this JSPTreeNode represents.voidsetTagName(String name) Sets the name of the tag which this JSPTreeNode represents.toString()A string representation of this JSPTreeNode.
-
Field Details
-
name
-
parent
-
children
-
attr
-
tag
protected javax.servlet.jsp.tagext.TagSupport tag -
dontCloneTags
protected final boolean dontCloneTags
-
-
Constructor Details
-
JSPTreeNode
-
JSPTreeNode
-
-
Method Details
-
getAttributes
Description copied from interface:JSPTreeNodeIFReturns the attributes for this JSPTreeNode.- Specified by:
getAttributesin interfaceJSPTreeNodeIF
-
addAttribute
Description copied from interface:JSPTreeNodeIFAdd a attribute to this JSPTreeNode.- Specified by:
addAttributein interfaceJSPTreeNodeIF
-
setTagName
Description copied from interface:JSPTreeNodeIFSets the name of the tag which this JSPTreeNode represents.- Specified by:
setTagNamein interfaceJSPTreeNodeIF
-
getTagName
Description copied from interface:JSPTreeNodeIFGets the tag name that this JSPTreeNode represents.- Specified by:
getTagNamein interfaceJSPTreeNodeIF
-
getTag
public javax.servlet.jsp.tagext.TagSupport getTag()Description copied from interface:JSPTreeNodeIFGets the tag that this JSPTreeNode represents.- Specified by:
getTagin interfaceJSPTreeNodeIF
-
setTag
public void setTag(javax.servlet.jsp.tagext.TagSupport tag) Description copied from interface:JSPTreeNodeIFSets the tag which this JSPTreeNode represents.- Specified by:
setTagin interfaceJSPTreeNodeIF
-
getParent
Description copied from interface:JSPTreeNodeIFGets the parent node of this JSPTreeNode.- Specified by:
getParentin interfaceJSPTreeNodeIF
-
setParent
Description copied from interface:JSPTreeNodeIFSets the parent node of this JSPTreeNode.- Specified by:
setParentin interfaceJSPTreeNodeIF
-
addChild
Description copied from interface:JSPTreeNodeIFAdds a child node to this JSPTreeNode.- Specified by:
addChildin interfaceJSPTreeNodeIF
-
getChildren
Description copied from interface:JSPTreeNodeIFGets the children (ordered) of this JSPTreeNode.- Specified by:
getChildrenin interfaceJSPTreeNodeIF
-
getContent
Description copied from interface:JSPTreeNodeIFThe string content attached to this JSPTreeNode.- Specified by:
getContentin interfaceJSPTreeNodeIF
-
toString
Description copied from interface:JSPTreeNodeIFA string representation of this JSPTreeNode.- Specified by:
toStringin interfaceJSPTreeNodeIF- Overrides:
toStringin classObject
-
makeClone
Description copied from interface:JSPTreeNodeIFReturns a node of the same class with the same internal state, but with a different tag object internally. Calling this method 'makeClone' instead of 'clone' so we can override the return type (we want Eiffel, NOW!).- Specified by:
makeClonein interfaceJSPTreeNodeIF
-