|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.util.dom.DOMBase | +--com.beasys.commerce.util.dom.NodeImpl | +--com.beasys.commerce.util.dom.CharacterDataImpl | +--com.beasys.commerce.util.dom.TextImpl
An implement of the W3C's DOM Text object.
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
TextImpl(org.w3c.dom.Document doc,
org.w3c.dom.Node parent,
java.lang.String data)
Constructor. |
Method Summary | |
org.w3c.dom.Node |
cloneNode()
Clone this node. |
java.lang.String |
getNodeName()
Return #text. |
short |
getNodeType()
Return Node.TEXT_NODE. |
org.w3c.dom.Text |
splitText(int offset)
Break this Text into two text nodes at the specified offset. |
Methods inherited from class com.beasys.commerce.util.dom.CharacterDataImpl |
appendData, checkCount, checkOffset, deleteData, getData, getLength, getNodeValue, insertData, replaceData, setData, setNodeValue, substringData |
Methods inherited from class com.beasys.commerce.util.dom.NodeImpl |
allowsChildren, appendChild, appendChildren, checkAllowChild, cloneNode, getAllowableChildrenTypes, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeType, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, insertChildrenBefore, isAncestor, removeChild, replaceChild, setParentNode |
Methods inherited from class com.beasys.commerce.util.dom.DOMBase |
checkOwnerDocument, checkReadOnly, getOwnerDocument, isReadOnly, setReadOnly |
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.CharacterData |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue |
Constructor Detail |
public TextImpl(org.w3c.dom.Document doc, org.w3c.dom.Node parent, java.lang.String data)
doc
- the owning document.parent
- the parent node.data
- the text data.Method Detail |
public org.w3c.dom.Node cloneNode()
cloneNode
in class NodeImpl
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
public org.w3c.dom.Text splitText(int offset) throws org.w3c.dom.DOMException
Since it's not documented, I'm assuming that if the Text node doesn't have a parent (i.e. removed from a tree), then I'll just split off the new Text node and not try to mess around with adding it as a sibling.
splitText
in interface org.w3c.dom.Text
offset
- the offset in the character data to break at.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |