jodd.lagarto.dom
Class Text

java.lang.Object
  extended by jodd.lagarto.dom.Node
      extended by jodd.lagarto.dom.Text
All Implemented Interfaces:
java.lang.Cloneable

public class Text
extends Node


Nested Class Summary
 
Nested classes/interfaces inherited from class jodd.lagarto.dom.Node
Node.NodeType
 
Field Summary
 
Fields inherited from class jodd.lagarto.dom.Node
attributes, caseSensitive, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeType, nodeValue, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex
 
Constructor Summary
Text()
           
Text(java.lang.String text)
           
 
Method Summary
 Text clone()
           
 java.lang.String getTextContent()
          Returns decoded HTML text.
 void setTextContent(java.lang.String text)
          Sets HTML text, but encodes it first.
 void setTextStrict(java.lang.String text)
          Sets HTML text, but encodes it first.
 void toHtml(java.lang.Appendable appendable)
          Generates HTML by appending it to the provided Appendable.
 
Methods inherited from class jodd.lagarto.dom.Node
appendChild, appendChild, cloneTo, detachFromParent, getAttribute, getAttribute, getAttributeInstance, getAttributesCount, getChild, getChildElement, getChildElements, getChildElementsCount, getChildElementsCount, getChildNodes, getChildNodesCount, getCssPath, getDeepLevel, getFirstChild, getFirstChildElement, getFirstChildElement, getHtml, getInnerHtml, getLastChild, getLastChildElement, getLastChildElement, getNextSibling, getNextSiblingElement, getNextSiblingName, getNodeName, getNodeType, getNodeValue, getParentNode, getPreviousSibling, getPreviousSiblingElement, getPreviousSiblingName, getSiblingElementIndex, getSiblingIndex, getSiblingNameIndex, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertBefore, insertChild, isAttributeIncluding, reindexChildren, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setAttribute, setNodeValue, toInnerHtml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()

Text

public Text(java.lang.String text)
Method Detail

clone

public Text clone()
Specified by:
clone in class Node

setTextContent

public void setTextContent(java.lang.String text)
Sets HTML text, but encodes it first.


getTextContent

public java.lang.String getTextContent()
Returns decoded HTML text.

Overrides:
getTextContent in class Node

setTextStrict

public void setTextStrict(java.lang.String text)
Sets HTML text, but encodes it first.


toHtml

public void toHtml(java.lang.Appendable appendable)
            throws java.io.IOException
Description copied from class: Node
Generates HTML by appending it to the provided Appendable.

Overrides:
toHtml in class Node
Throws:
java.io.IOException


Copyright © 2003-2011 Jodd Team