org.apache.axiom.om.impl.dom
Class CharacterImpl
java.lang.Object
org.apache.axiom.om.impl.dom.NodeImpl
org.apache.axiom.om.impl.dom.ChildNode
org.apache.axiom.om.impl.dom.CharacterImpl
- All Implemented Interfaces:
- Cloneable, OMNodeEx, OMNode, OMSerializable, CharacterData, Node, NodeList
- Direct Known Subclasses:
- CommentImpl, TextNodeImpl
public abstract class CharacterImpl
- extends ChildNode
- implements CharacterData
This implements the OMText operations which are to be inherited by TextImpl, CommentImpl,
CDATASectionImpl.
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 |
Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode |
cloneNode, detach, discard, getNextOMSibling, getNextOMSiblingIfAvailable, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling |
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
appendChild, build, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNodeValue, setOwnerDocument, 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, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Methods inherited from interface org.apache.axiom.om.OMNode |
getType |
textValue
protected String textValue
CharacterImpl
protected CharacterImpl(OMFactory factory)
CharacterImpl
public CharacterImpl(DocumentImpl ownerNode,
OMFactory factory)
- Parameters:
ownerNode
-
CharacterImpl
public CharacterImpl(DocumentImpl ownerNode,
String value,
OMFactory factory)
appendData
public void appendData(String value)
throws DOMException
- Specified by:
appendData
in interface CharacterData
- Throws:
DOMException
deleteData
public void deleteData(int offset,
int count)
throws DOMException
- Specified by:
deleteData
in interface CharacterData
- Throws:
DOMException
replaceData
public void replaceData(int offset,
int count,
String data)
throws DOMException
- If the given data is null the content will be deleted.
- Specified by:
replaceData
in interface CharacterData
- Throws:
DOMException
getData
public String getData()
throws DOMException
- Returns the value of the data.
- Specified by:
getData
in interface CharacterData
- Throws:
DOMException
insertData
public void insertData(int offset,
String data)
throws DOMException
- Inserts a string at the specified offset.
- Specified by:
insertData
in interface CharacterData
- Throws:
DOMException
setData
public void setData(String data)
throws DOMException
- Sets the text value of data.
- Specified by:
setData
in interface CharacterData
- Throws:
DOMException
substringData
public String substringData(int offset,
int count)
throws DOMException
- Extracts a range of data from the node.
- Specified by:
substringData
in interface CharacterData
- Returns:
- Returns the specified substring. If the sum of offset and count exceeds the length, then
all 16-bit units to the end of the data are returned.
- Throws:
DOMException
getLength
public int getLength()
- Returns the length of the string value.
- Specified by:
getLength
in interface CharacterData
- Specified by:
getLength
in interface NodeList
- Overrides:
getLength
in class NodeImpl
- Returns:
- Returns int.
- See Also:
ParentNode
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.