net.ontopia.utils.ontojsp
Interface JSPTreeNodeIF

All Known Implementing Classes:
JSPContentTreeNode, JSPTreeNode

public interface JSPTreeNodeIF

INTERNAL: Interface for classes which implement the Ontopia JSPTreeNodeIF. This class is the node of the JSPTree build by the JSPContentHandler.

See Also:
JSPContentHandler

Method Summary
 void addAttribute(java.lang.String key, java.lang.String value)
          Add a attribute to this JSPTreeNode.
 void addChild(JSPTreeNodeIF node)
          Adds a child node to this JSPTreeNode.
 java.util.Map getAttributes()
          Returns the attributes for this JSPTreeNode.
 java.util.List getChildren()
          Gets the children (ordered) of this JSPTreeNode.
 java.lang.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.
 java.lang.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 parentNode)
          Sets the parent node of this JSPTreeNode.
 void setTag(javax.servlet.jsp.tagext.TagSupport tag)
          Sets the tag which this JSPTreeNode represents.
 void setTagName(java.lang.String tagName)
          Sets the name of the tag which this JSPTreeNode represents.
 java.lang.String toString()
          A string representation of this JSPTreeNode.
 

Method Detail

getAttributes

java.util.Map getAttributes()
Returns the attributes for this JSPTreeNode.


addAttribute

void addAttribute(java.lang.String key,
                  java.lang.String value)
Add a attribute to this JSPTreeNode.


setTagName

void setTagName(java.lang.String tagName)
Sets the name of the tag which this JSPTreeNode represents.


getTagName

java.lang.String getTagName()
Gets the tag name that this JSPTreeNode represents.


setTag

void setTag(javax.servlet.jsp.tagext.TagSupport tag)
Sets the tag which this JSPTreeNode represents.


getTag

javax.servlet.jsp.tagext.TagSupport getTag()
Gets the tag that this JSPTreeNode represents.


getParent

JSPTreeNodeIF getParent()
Gets the parent node of this JSPTreeNode.


setParent

void setParent(JSPTreeNodeIF parentNode)
Sets the parent node of this JSPTreeNode.


addChild

void addChild(JSPTreeNodeIF node)
Adds a child node to this JSPTreeNode.


getChildren

java.util.List getChildren()
Gets the children (ordered) of this JSPTreeNode.


getContent

java.lang.String getContent()
The string content attached to this JSPTreeNode.


toString

java.lang.String toString()
A string representation of this JSPTreeNode.

Overrides:
toString in class java.lang.Object

makeClone

JSPTreeNodeIF makeClone()
Returns 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!).



Copyright © 2000-2012 Ontopia.