|
XML for Java Compatibility API 2.0.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parser.Child
The Child class implements the Node interface as defined by the Document Object Model (DOM).
Node is the base type of most objects in the Document Object Model. It may have an arbitrary number (including zero) of sequentially ordered Child Nodes. It usually has a parent Node; the exception being that the root Node in a document hierarchy has no parent.
The child node has an added property, userData, that allows the programmer to attach application specific data to any node in the document tree that extends Child.
Node
,
TXElement
,
TXText
,
TXComment
,
TXPI
,
TXCDATASection
,
TXNotation
,
TXAttribute
,
Parent
, Serialized FormField Summary | |
static int |
ATTDEF
|
static int |
ATTLIST
|
static int |
ELEMENT_DECL
|
static java.lang.String |
NAME_ATTDEF
|
static java.lang.String |
NAME_ATTLIST
|
static java.lang.String |
NAME_CDATA
|
static java.lang.String |
NAME_COMMENT
|
static java.lang.String |
NAME_DOCFRAGMENT
|
static java.lang.String |
NAME_DOCUMENT
|
static java.lang.String |
NAME_ELEMENT_DECL
|
static java.lang.String |
NAME_PSEUDONODE
|
static java.lang.String |
NAME_TEXT
|
static int |
PSEUDONODE
|
Constructor Summary | |
Child()
|
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Throws a DOMException because Child Nodes are leaf Nodes. |
void |
clearDigest()
Clears the digest value for this Node and any ancestors. |
abstract java.lang.Object |
clone()
Clone this object. |
org.w3c.dom.Node |
cloneNode(boolean deep)
This method is defined by DOM. |
abstract boolean |
equals(org.w3c.dom.Node node,
boolean deep)
|
org.w3c.dom.NamedNodeMap |
getAttributes()
Returns null. |
org.w3c.dom.NodeList |
getChildNodes()
Returns an empty NodeList object because Child Nodes are leaf Nodes. |
byte[] |
getDigest()
Returns the digest value for this Node. |
TXDocument |
getFactory()
Returns the factory used for creating this Node. |
org.w3c.dom.Node |
getFirstChild()
Returns null because Child Nodes are leaf Nodes. |
org.w3c.dom.Node |
getFirstWithoutReference()
Return null |
org.w3c.dom.Node |
getLastChild()
Returns null because Child Nodes are leaf Nodes. |
org.w3c.dom.Node |
getLastWithoutReference()
Return null |
org.w3c.dom.Node |
getNextSibling()
Returns the Node immediately following this Node in a breadth-first traversal of the tree. |
org.w3c.dom.Node |
getNextWithoutReference()
|
java.lang.String |
getNodeValue()
This method is defined by DOM. |
org.w3c.dom.Document |
getOwnerDocument()
This method is defined by DOM. |
org.w3c.dom.Node |
getParentNode()
Returns the parent of the given Node instance. |
org.w3c.dom.Node |
getParentWithoutReference()
|
org.w3c.dom.Node |
getPreviousSibling()
Returns the Node immediately preceding this Node in a breadth-first traversal of the tree. |
org.w3c.dom.Node |
getPreviousWithoutReference()
|
java.lang.String |
getText()
Returns all text associated with this Node without considering entities. |
java.lang.Object |
getUserData()
Returns the user data associated to this child node. |
boolean |
hasChildNodes()
Returns false because Child Nodes are leaf Nodes. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Throws a DOMException because Child Nodes are leaf Nodes. |
XPointer |
makeXPointer()
Returns an XPointer instance representing this Node. |
void |
print(java.io.Writer writer)
Print this Node and any children in XML format, using the default character encoding. |
void |
print(java.io.Writer writer,
java.lang.String encoding)
Print this Node and any children in XML format, using the specified character encoding. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Throws a DOMException because Child Nodes are leaf Nodes. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node oldChild,
org.w3c.dom.Node newChild)
Throws a DOMException because Child Nodes are leaf Nodes. |
TXElement |
searchAncestors(int matchType,
java.lang.String uri,
java.lang.String qNameOrLocalName)
Returns the first TXElement match through all ancestors. |
TXElement |
searchAncestors(java.lang.String qName)
Returns the first TXElement match through all ancestors. |
void |
setFactory(TXDocument factory)
Sets the factory to be used in creating this Node. |
void |
setNodeValue(java.lang.String arg)
This method is defined by DOM. |
void |
setUserData(java.lang.Object data)
Sets the user data associated to this child node. |
void |
toXMLString(java.io.Writer writer)
Returns this Node and any children in XML format using the default character encoding. |
void |
toXMLString(java.io.Writer writer,
java.lang.String encoding)
Returns this Node and any children in XML format using the specified character encoding. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ELEMENT_DECL
public static final int ATTLIST
public static final int ATTDEF
public static final int PSEUDONODE
public static final java.lang.String NAME_DOCUMENT
public static final java.lang.String NAME_COMMENT
public static final java.lang.String NAME_TEXT
public static final java.lang.String NAME_CDATA
public static final java.lang.String NAME_DOCFRAGMENT
public static final java.lang.String NAME_ATTDEF
public static final java.lang.String NAME_ATTLIST
public static final java.lang.String NAME_ELEMENT_DECL
public static final java.lang.String NAME_PSEUDONODE
Constructor Detail |
public Child()
Method Detail |
public abstract java.lang.Object clone()
public org.w3c.dom.Node cloneNode(boolean deep)
This method is defined by DOM.
deep
- ignored.public abstract boolean equals(org.w3c.dom.Node node, boolean deep)
public java.lang.String getNodeValue()
This method is defined by DOM.
public void setNodeValue(java.lang.String arg)
This method is defined by DOM.
public org.w3c.dom.Node getParentNode()
This method is defined by DOM.
public org.w3c.dom.Node getParentWithoutReference()
public org.w3c.dom.NodeList getChildNodes()
This method is defined by DOM.
Parent.getChildNodes()
public boolean hasChildNodes()
This method is defined by DOM.
Parent.hasChildNodes()
public org.w3c.dom.Node getFirstChild()
This method is defined by DOM.
Parent.getFirstChild()
public org.w3c.dom.Node getFirstWithoutReference()
Parent.getFirstWithoutReference()
public org.w3c.dom.Node getLastChild()
This method is defined by DOM.
Parent.getLastChild()
public org.w3c.dom.Node getLastWithoutReference()
Parent.getLastWithoutReference()
public org.w3c.dom.Node getPreviousSibling()
This method is defined by DOM.
getNextSibling()
public org.w3c.dom.Node getPreviousWithoutReference()
public org.w3c.dom.Node getNextSibling()
This method is defined by DOM.
getPreviousSibling()
public org.w3c.dom.Node getNextWithoutReference()
public org.w3c.dom.NamedNodeMap getAttributes()
This method is defined by DOM.
TXElement.getAttributes()
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
newChild
- Not used.refChild
- Not used.Parent.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node oldChild, org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
oldChild
- Not used.newChild
- Not used.Parent.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
oldChild
- Not used.Parent.removeChild(org.w3c.dom.Node)
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
Parent.removeChild(org.w3c.dom.Node)
public java.lang.String getText()
TXText.getText()
,
toXMLString(java.io.Writer, java.lang.String)
public TXElement searchAncestors(java.lang.String qName)
qName
- Qualified name to match against in all ancestors.Namespace
public TXElement searchAncestors(int matchType, java.lang.String uri, java.lang.String qNameOrLocalName)
matchType
- Namespace match type: Match.QNAME, Match.NSLOCAL, Match.NS
uri
- When matching a URI, specify the value to match; otherwise, specify null.qNameOrLocalName
- When matching a qualified name or local name, specify the value to match; otherwise, specify null.Namespace
public void toXMLString(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException, LibraryException
writer
- The character output stream to use.encoding
- Java character encoding in use by writer.getText()
public void toXMLString(java.io.Writer writer) throws java.io.IOException, LibraryException
writer
- The character output stream to use.getText()
public void print(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException, LibraryException
writer
- The character output stream to use.encoding
- Java character encoding in use by writer.TXDocument.printWithFormat(java.io.Writer)
public void print(java.io.Writer writer) throws java.io.IOException, LibraryException
writer
- The character output stream to use.TXDocument.printWithFormat(java.io.Writer)
public org.w3c.dom.Document getOwnerDocument()
This method is defined by DOM.
public TXDocument getFactory()
setFactory(com.ibm.xml.parser.TXDocument)
public void setFactory(TXDocument factory)
factory
- The factory to be used in creating this Node.getFactory()
public byte[] getDigest() throws LibraryException
clearDigest()
public void clearDigest()
getDigest()
public XPointer makeXPointer()
XPointer
public void setUserData(java.lang.Object data)
data
- The user data to attach to this child node.
This value may be null.getUserData()
public java.lang.Object getUserData()
setUserData(java.lang.Object)
|
XML for Java Compatibility API 2.0.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |