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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendData(String arg) voiddeleteData(int offset, int count) getData()intshortvoidinsertData(int offset, String arg) booleanvoidreplaceData(int offset, int count, String arg) replaceWholeText(String content) voidsplitText(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, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getParentNodein interfaceNode- Overrides:
getParentNodein classAbstractAmetysNode
-
getData
- Specified by:
getDatain interfaceCharacterData- Throws:
DOMException
-
getLength
- Specified by:
getLengthin interfaceCharacterData
-
substringData
- Specified by:
substringDatain interfaceCharacterData- Throws:
DOMException
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Overrides:
getNodeValuein classAbstractAmetysNode- Throws:
DOMException
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
- Specified by:
getNodeTypein interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode- Overrides:
getNextSiblingin classAbstractAmetysNode
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setData
- Specified by:
setDatain interfaceCharacterData- Throws:
DOMException
-
isElementContentWhitespace
- Specified by:
isElementContentWhitespacein interfaceText
-
getWholeText
- Specified by:
getWholeTextin interfaceText
-
appendData
- Specified by:
appendDatain interfaceCharacterData- Throws:
DOMException
-
insertData
- Specified by:
insertDatain interfaceCharacterData- Throws:
DOMException
-
deleteData
- Specified by:
deleteDatain interfaceCharacterData- Throws:
DOMException
-
replaceData
- Specified by:
replaceDatain interfaceCharacterData- Throws:
DOMException
-
splitText
- Specified by:
splitTextin interfaceText- Throws:
DOMException
-
replaceWholeText
- Specified by:
replaceWholeTextin interfaceText- Throws:
DOMException
-