org.pasoa.dommap
Class SimpleText
java.lang.Object
org.pasoa.dommap.SimpleNode
org.pasoa.dommap.SimpleText
- All Implemented Interfaces:
- CharacterData, Node, Text
- public class SimpleText
- extends SimpleNode
- implements Text
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 |
Method Summary |
void |
appendData(String arg)
|
SimpleNode |
cloneNode(boolean deep,
Document newOwner)
|
short |
compareDocumentPosition(Node other)
|
void |
deleteData(int offset,
int count)
|
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
String |
getBaseURI()
|
String |
getData()
|
NodeList |
getElementsByTagName(String name)
|
Object |
getFeature(String feature,
String version)
|
int |
getLength()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Node |
getPreviousSibling()
|
TypeInfo |
getSchemaTypeInfo()
|
String |
getTextContent()
|
Object |
getUserData(String key)
|
String |
getWholeText()
|
boolean |
hasAttribute(String name)
|
boolean |
hasAttributeNS(String namespaceURI,
String localName)
|
int |
hashCode()
|
Node |
insertBefore(Node newChild,
Node refChild)
|
void |
insertData(int offset,
String arg)
|
boolean |
isDefaultNamespace(String namespaceURI)
|
boolean |
isElementContentWhitespace()
|
boolean |
isEqualNode(Node other)
|
boolean |
isSupported(String feature,
String version)
|
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
void |
normalize()
|
void |
removeAttribute(String name)
|
Attr |
removeAttributeNode(Attr oldAttr)
|
void |
removeAttributeNS(String namespaceURI,
String localName)
|
Node |
removeChild(Node oldChild)
|
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
replaceData(int offset,
int count,
String arg)
|
Text |
replaceWholeText(String content)
|
void |
setAttribute(String name,
String value)
|
Attr |
setAttributeNode(Attr newAttr)
|
void |
setData(String data)
|
void |
setIdAttribute(String name,
boolean isId)
|
void |
setIdAttributeNode(Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
|
void |
setNodeValue(String nodeValue)
|
void |
setPrefix(String prefix)
|
void |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
|
Text |
splitText(int offset)
|
String |
substringData(int offset,
int count)
|
Methods inherited from class org.pasoa.dommap.SimpleNode |
addNamespace, appendChild, cloneChildren, cloneNode, equals, getAllNamespaces, getAttributeNodeNS, getAttributes, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceForPrefix, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPrefixForNamespace, getTagName, hasAttributes, hasChildNodes, importInto, incorporateChild, isSameNode, setAttributeNodeNS, setAttributeNS, toString |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
SimpleText
public SimpleText(Document owner,
String content)
SimpleText
public SimpleText(Document owner,
SimpleNode parent,
int childIndex,
String content)
SimpleText
public SimpleText(Document owner,
SimpleNode parent,
int childIndex,
Text convertFrom)
cloneNode
public SimpleNode cloneNode(boolean deep,
Document newOwner)
getData
public String getData()
throws DOMException
- Specified by:
getData
in interface CharacterData
- Throws:
DOMException
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
- Overrides:
getNodeName
in class SimpleNode
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface Node
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interface Node
getTextContent
public String getTextContent()
throws DOMException
- Specified by:
getTextContent
in interface Node
- Throws:
DOMException
getWholeText
public String getWholeText()
- Specified by:
getWholeText
in interface Text
replaceWholeText
public Text replaceWholeText(String content)
throws DOMException
- Specified by:
replaceWholeText
in interface Text
- Throws:
DOMException
isElementContentWhitespace
public boolean isElementContentWhitespace()
- Specified by:
isElementContentWhitespace
in interface Text
isEqualNode
public boolean isEqualNode(Node other)
- Specified by:
isEqualNode
in interface Node
- Overrides:
isEqualNode
in class SimpleNode
splitText
public Text splitText(int offset)
throws DOMException
- Specified by:
splitText
in interface Text
- Throws:
DOMException
replaceData
public void replaceData(int offset,
int count,
String arg)
throws DOMException
- Specified by:
replaceData
in interface CharacterData
- Throws:
DOMException
deleteData
public void deleteData(int offset,
int count)
throws DOMException
- Specified by:
deleteData
in interface CharacterData
- Throws:
DOMException
insertData
public void insertData(int offset,
String arg)
throws DOMException
- Specified by:
insertData
in interface CharacterData
- Throws:
DOMException
appendData
public void appendData(String arg)
throws DOMException
- Specified by:
appendData
in interface CharacterData
- Throws:
DOMException
substringData
public String substringData(int offset,
int count)
throws DOMException
- Specified by:
substringData
in interface CharacterData
- Throws:
DOMException
getLength
public int getLength()
- Specified by:
getLength
in interface CharacterData
setData
public void setData(String data)
throws DOMException
- Specified by:
setData
in interface CharacterData
- Throws:
DOMException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
setNodeValue
public void setNodeValue(String nodeValue)
throws DOMException
- Specified by:
setNodeValue
in interface Node
- Throws:
DOMException
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
- Throws:
DOMException
setUserData
public Object setUserData(String key,
Object data,
UserDataHandler handler)
- Specified by:
setUserData
in interface Node
setAttributeNode
public Attr setAttributeNode(Attr newAttr)
throws DOMException
- Throws:
DOMException
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr)
throws DOMException
- Throws:
DOMException
setTextContent
public void setTextContent(String textContent)
throws DOMException
- Specified by:
setTextContent
in interface Node
- Throws:
DOMException
setPrefix
public void setPrefix(String prefix)
throws DOMException
- Specified by:
setPrefix
in interface Node
- Throws:
DOMException
getElementsByTagName
public NodeList getElementsByTagName(String name)
getAttribute
public String getAttribute(String name)
getAttributeNode
public Attr getAttributeNode(String name)
getUserData
public Object getUserData(String key)
- Specified by:
getUserData
in interface Node
hasAttribute
public boolean hasAttribute(String name)
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespace
in interface Node
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI
in interface Node
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefix
in interface Node
removeAttribute
public void removeAttribute(String name)
throws DOMException
- Throws:
DOMException
compareDocumentPosition
public short compareDocumentPosition(Node other)
throws DOMException
- Specified by:
compareDocumentPosition
in interface Node
- Throws:
DOMException
removeChild
public Node removeChild(Node oldChild)
throws DOMException
- Specified by:
removeChild
in interface Node
- Throws:
DOMException
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
- Throws:
DOMException
setIdAttribute
public void setIdAttribute(String name,
boolean isId)
throws DOMException
- Throws:
DOMException
setAttribute
public void setAttribute(String name,
String value)
throws DOMException
- Throws:
DOMException
replaceChild
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
- Specified by:
replaceChild
in interface Node
- Throws:
DOMException
getFeature
public Object getFeature(String feature,
String version)
- Specified by:
getFeature
in interface Node
getAttributeNS
public String getAttributeNS(String namespaceURI,
String localName)
throws DOMException
- Throws:
DOMException
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI
in interface Node
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interface Node
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI,
String localName)
throws DOMException
- Throws:
DOMException
insertBefore
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
- Specified by:
insertBefore
in interface Node
- Throws:
DOMException
isSupported
public boolean isSupported(String feature,
String version)
- Specified by:
isSupported
in interface Node
normalize
public void normalize()
- Specified by:
normalize
in interface Node
removeAttributeNS
public void removeAttributeNS(String namespaceURI,
String localName)
throws DOMException
- Throws:
DOMException