|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.lagarto.dom.Node
jodd.lagarto.dom.Text
public class Text
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jodd.lagarto.dom.Node |
|---|
Node.NodeType |
| Field Summary | |
|---|---|
protected java.lang.Boolean |
blank
|
| Fields inherited from class jodd.lagarto.dom.Node |
|---|
attributes, caseSensitive, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeType, nodeValue, parentNode, position, siblingElementIndex, siblingIndex, siblingNameIndex |
| Constructor Summary | |
|---|---|
Text()
|
|
Text(java.lang.String text)
|
|
| Method Summary | |
|---|---|
Text |
clone()
|
java.lang.String |
getTextContent()
Returns decoded HTML text. |
boolean |
isBlank()
Returns true if text content is blank. |
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 java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Boolean blank
| Constructor Detail |
|---|
public Text()
public Text(java.lang.String text)
| Method Detail |
|---|
public Text clone()
clone in class Nodepublic boolean isBlank()
true if text content is blank.
public void setTextContent(java.lang.String text)
public java.lang.String getTextContent()
getTextContent in class Nodepublic void setTextStrict(java.lang.String text)
public void toHtml(java.lang.Appendable appendable)
throws java.io.IOException
NodeAppendable.
toHtml in class Nodejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||