net.ontopia.utils.ontojsp
Class JSPTreeNode

java.lang.Object
  extended by net.ontopia.utils.ontojsp.JSPTreeNode
All Implemented Interfaces:
JSPTreeNodeIF

public class JSPTreeNode
extends java.lang.Object
implements JSPTreeNodeIF

INTERNAL: Tree node representing a JSP tag.

See Also:
JSPContentHandler

Field Summary
protected  java.util.Map attr
           
protected  java.util.List children
           
protected  java.lang.String name
           
protected  JSPTreeNodeIF parent
           
protected  javax.servlet.jsp.tagext.TagSupport tag
           
 
Constructor Summary
JSPTreeNode(java.lang.String name, JSPTreeNodeIF parent)
           
 
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 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(java.lang.String name)
          Sets the name of the tag which this JSPTreeNode represents.
 java.lang.String toString()
          A string representation of this JSPTreeNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

parent

protected JSPTreeNodeIF parent

children

protected java.util.List children

attr

protected java.util.Map attr

tag

protected javax.servlet.jsp.tagext.TagSupport tag
Constructor Detail

JSPTreeNode

public JSPTreeNode(java.lang.String name,
                   JSPTreeNodeIF parent)
Method Detail

getAttributes

public java.util.Map getAttributes()
Description copied from interface: JSPTreeNodeIF
Returns the attributes for this JSPTreeNode.

Specified by:
getAttributes in interface JSPTreeNodeIF

addAttribute

public void addAttribute(java.lang.String key,
                         java.lang.String value)
Description copied from interface: JSPTreeNodeIF
Add a attribute to this JSPTreeNode.

Specified by:
addAttribute in interface JSPTreeNodeIF

setTagName

public void setTagName(java.lang.String name)
Description copied from interface: JSPTreeNodeIF
Sets the name of the tag which this JSPTreeNode represents.

Specified by:
setTagName in interface JSPTreeNodeIF

getTagName

public java.lang.String getTagName()
Description copied from interface: JSPTreeNodeIF
Gets the tag name that this JSPTreeNode represents.

Specified by:
getTagName in interface JSPTreeNodeIF

getTag

public javax.servlet.jsp.tagext.TagSupport getTag()
Description copied from interface: JSPTreeNodeIF
Gets the tag that this JSPTreeNode represents.

Specified by:
getTag in interface JSPTreeNodeIF

setTag

public void setTag(javax.servlet.jsp.tagext.TagSupport tag)
Description copied from interface: JSPTreeNodeIF
Sets the tag which this JSPTreeNode represents.

Specified by:
setTag in interface JSPTreeNodeIF

getParent

public JSPTreeNodeIF getParent()
Description copied from interface: JSPTreeNodeIF
Gets the parent node of this JSPTreeNode.

Specified by:
getParent in interface JSPTreeNodeIF

setParent

public void setParent(JSPTreeNodeIF parent)
Description copied from interface: JSPTreeNodeIF
Sets the parent node of this JSPTreeNode.

Specified by:
setParent in interface JSPTreeNodeIF

addChild

public void addChild(JSPTreeNodeIF node)
Description copied from interface: JSPTreeNodeIF
Adds a child node to this JSPTreeNode.

Specified by:
addChild in interface JSPTreeNodeIF

getChildren

public java.util.List getChildren()
Description copied from interface: JSPTreeNodeIF
Gets the children (ordered) of this JSPTreeNode.

Specified by:
getChildren in interface JSPTreeNodeIF

getContent

public java.lang.String getContent()
Description copied from interface: JSPTreeNodeIF
The string content attached to this JSPTreeNode.

Specified by:
getContent in interface JSPTreeNodeIF

toString

public java.lang.String toString()
Description copied from interface: JSPTreeNodeIF
A string representation of this JSPTreeNode.

Specified by:
toString in interface JSPTreeNodeIF
Overrides:
toString in class java.lang.Object

makeClone

public JSPTreeNodeIF makeClone()
Description copied from interface: JSPTreeNodeIF
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!).

Specified by:
makeClone in interface JSPTreeNodeIF


Copyright © 2000-2012 Ontopia.