Package org.ametys.core.util.dom
Class AmetysText
java.lang.Object
org.ametys.core.util.dom.AbstractAmetysNode
org.ametys.core.util.dom.AmetysText
- All Implemented Interfaces:
CharacterData
,Node
,Text
Partial implementation of a read-only, non-namespace aware
It is NOT intended to be used as a full-featured DOM implementation, but it aims to provide a thin DOM layer over objects usable e.g. in XPath expressions and XSL stylesheets.
Text
on top of an objects hierarchy.It is NOT intended to be used as a full-featured DOM implementation, but it aims to provide a thin DOM layer over objects usable e.g. in XPath expressions and XSL stylesheets.
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendData
(String arg) void
deleteData
(int offset, int count) getData()
int
short
void
insertData
(int offset, String arg) boolean
void
replaceData
(int offset, int count, String arg) replaceWholeText
(String content) void
splitText
(int offset) substringData
(int offset, int count) Methods inherited from class org.ametys.core.util.dom.AbstractAmetysNode
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
AmetysText
Constructor- Parameters:
data
- The data valueparent
- the parentElement
.
-
-
Method Details
-
getParentNode
- Specified by:
getParentNode
in interfaceNode
- Overrides:
getParentNode
in classAbstractAmetysNode
-
getData
- Specified by:
getData
in interfaceCharacterData
- Throws:
DOMException
-
getLength
- Specified by:
getLength
in interfaceCharacterData
-
substringData
- Specified by:
substringData
in interfaceCharacterData
- Throws:
DOMException
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Overrides:
getNodeValue
in classAbstractAmetysNode
- Throws:
DOMException
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
-
getNodeType
- Specified by:
getNodeType
in interfaceNode
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
- Overrides:
getNextSibling
in classAbstractAmetysNode
-
getTextContent
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setData
- Specified by:
setData
in interfaceCharacterData
- Throws:
DOMException
-
isElementContentWhitespace
- Specified by:
isElementContentWhitespace
in interfaceText
-
getWholeText
- Specified by:
getWholeText
in interfaceText
-
appendData
- Specified by:
appendData
in interfaceCharacterData
- Throws:
DOMException
-
insertData
- Specified by:
insertData
in interfaceCharacterData
- Throws:
DOMException
-
deleteData
- Specified by:
deleteData
in interfaceCharacterData
- Throws:
DOMException
-
replaceData
- Specified by:
replaceData
in interfaceCharacterData
- Throws:
DOMException
-
splitText
- Specified by:
splitText
in interfaceText
- Throws:
DOMException
-
replaceWholeText
- Specified by:
replaceWholeText
in interfaceText
- Throws:
DOMException
-