org.exoplatform.services.html
Class HTMLNode

java.lang.Object
  extended by org.exoplatform.services.html.HTMLNode
All Implemented Interfaces:
Node<Name>
Direct Known Subclasses:
NodeImpl

public abstract class HTMLNode
extends java.lang.Object
implements Node<Name>

Author : Nhu Dinh Thuan Email:nhudinhthuan@yahoo.com Aug 3, 2006


Field Summary
protected  java.util.List<HTMLNode> children
           
protected  Name name
           
protected  HTMLNode parent
           
protected  char[] value
           
 
Constructor Summary
protected HTMLNode(char[] value, Name name)
           
 
Method Summary
 void addChild(HTMLNode ele)
           
abstract  java.lang.StringBuilder buildValue(java.lang.StringBuilder builder)
           
 java.util.List<HTMLNode> getChildren()
           
 java.util.List<HTMLNode> getChildrenNode()
           
 NodeConfig getConfig()
           
 Name getName()
           
 HTMLNode getParent()
           
 java.lang.String getTextValue()
           
 char[] getValue()
           
 boolean isNode(Name n)
           
 boolean isNode(java.lang.String nodeName)
           
 void setName(Name name)
           
 void setParent(HTMLNode parent)
           
 void setValue(char[] value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected char[] value

name

protected Name name

parent

protected HTMLNode parent

children

protected java.util.List<HTMLNode> children
Constructor Detail

HTMLNode

protected HTMLNode(char[] value,
                   Name name)
Method Detail

getValue

public char[] getValue()
Specified by:
getValue in interface Node<Name>

setValue

public void setValue(char[] value)
Specified by:
setValue in interface Node<Name>

getConfig

public NodeConfig getConfig()

isNode

public boolean isNode(java.lang.String nodeName)

isNode

public boolean isNode(Name n)

getName

public Name getName()
Specified by:
getName in interface Node<Name>

setName

public void setName(Name name)

getParent

public HTMLNode getParent()

setParent

public void setParent(HTMLNode parent)

addChild

public void addChild(HTMLNode ele)

getChildren

public java.util.List<HTMLNode> getChildren()

getChildrenNode

public java.util.List<HTMLNode> getChildrenNode()

getTextValue

public java.lang.String getTextValue()

buildValue

public abstract java.lang.StringBuilder buildValue(java.lang.StringBuilder builder)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.