public class TextElement extends Object
Constructor and Description |
---|
TextElement(Element _element) |
Modifier and Type | Method and Description |
---|---|
Element |
getElement() |
String |
getText()
Returns the text of this node.
|
static String |
getTextFromElement(Element element) |
void |
setText(String _text)
Sets the text for this node.
|
public TextElement(Element _element)
public void setText(String _text)
null
or the empty string it will be
replaced by EMPTY_ELEMENT_PLACEHOLDER
to prevent this element from being removed from the document.text
- The new text for the element.public String getText()
EMPTY_ELEMENT_PLACEHOLDER
, the empty string
will be returned.setText(String)
public Element getElement()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.