public class XMLText extends XMLCharacterData implements Text
textATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
XMLText(XMLDocument doc,
String text)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLText |
cloneNode(boolean deep) |
String |
getNodeName() |
short |
getNodeType() |
String |
getWholeText() |
boolean |
isElementContentWhitespace() |
static boolean |
isXMLSpace(char c)
Return true is the given character is considered as a white space.
|
XMLText |
replaceWholeText(String content) |
XMLText |
splitText(int offset) |
appendData, deleteData, getData, getLength, getNodeValue, getTextContent, insertData, replaceData, setData, setNodeValue, setTextContent, substringDataappendChild, cloned, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isAncestor, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setParent, setPrefix, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic XMLText(XMLDocument doc, String text)
public short getNodeType()
getNodeType in interface Nodepublic String getNodeName()
getNodeName in interface Nodepublic boolean isElementContentWhitespace()
isElementContentWhitespace in interface Textpublic static boolean isXMLSpace(char c)
public String getWholeText()
getWholeText in interface Textpublic XMLText replaceWholeText(String content)
replaceWholeText in interface TextCopyright © 2019. All rights reserved.