|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.caucho.xml.QAbstractNode
|
+--com.caucho.xml.QNode
|
+--com.caucho.xml.QAttributedNode
|
+--com.caucho.xml.QElement
Resin's implementation of the DOM element.
| Fields inherited from class com.caucho.xml.QAbstractNode |
L |
| 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 |
| Method Summary | |
Node |
appendChild(Node child)
Appends a new node as the last child of the element. |
boolean |
equals(Node arg,
boolean deep)
|
boolean |
equals(java.lang.Object arg)
|
java.lang.String |
getAttribute(java.lang.String name)
Returns the named attribute. |
Attr |
getAttributeNode(java.lang.String name)
Returns the attribute specified by the name. |
Attr |
getAttributeNodeNS(java.lang.String uri,
java.lang.String local)
Retrieves an Attr node by local name and namespace URI. |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String local)
Returns the attribute specified by a namespace. |
NamedNodeMap |
getAttributes()
Returns a map of the attributes. |
java.lang.String |
getCanonicalName()
Returns the canonical name of the element. |
NodeList |
getElementsByTagName(java.lang.String tagName)
Returns a list of elements, given a tag name. |
NodeList |
getElementsByTagNameNS(java.lang.String uri,
java.lang.String name)
Returns a list of elements, given a namespace and a local name. |
Attr |
getFirstAttribute()
Returns the first attribute in the attribute list. |
java.lang.String |
getLocalName()
Returns the local part of the element's name. |
java.lang.String |
getNamespace(java.lang.String prefix)
Given a prefix, returns the namespace in effect at this element. |
java.lang.String |
getNamespaceURI()
Returns the namespace of the element. |
java.lang.String |
getNodeName()
Returns the element's qualified-name as the node name. |
short |
getNodeType()
Returns the DOM NodeType, ELEMENT_NODE. |
java.lang.String |
getPrefix()
Returns the namespace prefix for the element. |
java.lang.String |
getTagName()
Returns the element's qualified-name as the node name. |
java.lang.String |
getTextValue()
Returns the text value of the element. |
boolean |
hasAttribute(java.lang.String name)
Returns true when an attribute with a given name is
specified on this element or has a default value, false
otherwise. |
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String local)
Returns true when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false otherwise. |
boolean |
hasAttributes()
Returns true if the element has attributes. |
boolean |
hasContent()
|
void |
normalize()
Normalize the element, i.e. |
void |
removeAttribute(java.lang.String name)
Removes the named attribute. |
Attr |
removeAttributeNode(Attr attr)
Removes the matching attribute. |
Attr |
removeAttributeNodeNS(Attr attr)
Removes the matching attribute. |
void |
removeAttributeNS(java.lang.String uri,
java.lang.String name)
Removes the attribute specified by the localname and namespace. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds a new attribute. |
Attr |
setAttributeNode(Attr attr)
Sets an attribute, specified by the object. |
Attr |
setAttributeNodeNS(Attr attr)
Adds a new attribute. |
void |
setAttributeNS(java.lang.String uri,
java.lang.String local,
java.lang.String value)
Adds a new attribute. |
void |
setName(QName name)
Assign a name to the element. |
java.lang.String |
toString()
|
QAttr |
unlink(java.lang.String uri,
java.lang.String local)
Removes the attribute named by the URI and local name. |
| Methods inherited from class com.caucho.xml.QNode |
checkValid, getChildNodes, getFirstChild, getLastChild, getLength, getNextPreorder, getNextSibling, getNodeValue, getPreviousSibling, hasChildNodes, insertBefore, item, removeChild, replaceChild, setNodeValue |
| Methods inherited from class com.caucho.xml.QAbstractNode |
cloneNode, getColumn, getFilename, getLine, getNextContent, getOwnerDocument, getParentNode, getPreviousContent, isSupported, print, printHtml, printPretty, setLocation, setPrefix, supports |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.xml.CauchoElement |
getFirstAttribute |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setNodeValue, setPrefix |
| Methods inherited from interface com.caucho.xml.CauchoNode |
checkValid, getColumn, getFilename, getLine, print, printHtml, printPretty, setLocation |
| Method Detail |
public void setName(QName name)
name - the element's name.public java.lang.String getNodeName()
getNodeName in interface Nodepublic java.lang.String getTagName()
getTagName in interface Elementpublic java.lang.String getLocalName()
getLocalName in interface NodegetLocalName in class QAbstractNodepublic java.lang.String getPrefix()
getPrefix in interface NodegetPrefix in class QAbstractNodeorg.w3c.dom.NodeDOMException - INVALID_CHARACTER_ERR: Raised if the specified prefix contains an
illegal character, per the XML 1.0 specification .
prefix is
malformed per the Namespaces in XML specification, if the
namespaceURI of this node is null, if the
specified prefix is "xml" and the namespaceURI of this
node is different from "http://www.w3.org/XML/1998/namespace", if
this node is an attribute and the specified prefix is "xmlns" and
the namespaceURI of this node is different from "
http://www.w3.org/2000/xmlns/", or if this node is an attribute and
the qualifiedName of this node is "xmlns" .public java.lang.String getCanonicalName()
getCanonicalName in interface CauchoNodegetCanonicalName in class QAbstractNodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface NodegetNamespaceURI in class QAbstractNodepublic java.lang.String getNamespace(java.lang.String prefix)
getNamespace in interface CauchoElementprefix - the prefix to test.public short getNodeType()
getNodeType in interface Nodepublic NodeList getElementsByTagName(java.lang.String tagName)
getElementsByTagName in interface Elementorg.w3c.dom.Elementname - The name of the tag to match on. The special value "*"
matches all tags.Element nodes.
public NodeList getElementsByTagNameNS(java.lang.String uri,
java.lang.String name)
getElementsByTagNameNS in interface Elementorg.w3c.dom.ElementnamespaceURI - The namespace URI of the elements to match on. The
special value "*" matches all namespaces.localName - The local name of the elements to match on. The
special value "*" matches all local names.NodeList object containing all the matched
Elements.
public Node appendChild(Node child)
throws DOMException
appendChild in interface NodeappendChild in class QNodechild - the new child.public void normalize()
normalize in interface Nodenormalize in class QNodepublic boolean hasContent()
hasContent in class QAbstractNodepublic boolean equals(java.lang.Object arg)
equals in class QNode
public boolean equals(Node arg,
boolean deep)
equals in class QNodepublic java.lang.String getTextValue()
getTextValue in interface CauchoNodegetTextValue in class QAbstractNodepublic java.lang.String toString()
toString in class java.lang.Objectpublic NamedNodeMap getAttributes()
getAttributes in class QNodepublic boolean hasAttributes()
hasAttributes in class QAbstractNodeorg.w3c.dom.Nodetrue if this node has any attributes,
false otherwise.public Attr getFirstAttribute()
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String local)
public boolean hasAttribute(java.lang.String name)
public boolean hasAttributeNS(java.lang.String namespaceURI,
java.lang.String local)
public Attr getAttributeNode(java.lang.String name)
public Attr getAttributeNodeNS(java.lang.String uri,
java.lang.String local)
public void setAttribute(java.lang.String name,
java.lang.String value)
throws DOMException
public void setAttributeNS(java.lang.String uri,
java.lang.String local,
java.lang.String value)
public Attr setAttributeNode(Attr attr)
throws DOMException
public Attr setAttributeNodeNS(Attr attr)
throws DOMException
public void removeAttribute(java.lang.String name)
public void removeAttributeNS(java.lang.String uri,
java.lang.String name)
public Attr removeAttributeNode(Attr attr)
public Attr removeAttributeNodeNS(Attr attr)
public QAttr unlink(java.lang.String uri,
java.lang.String local)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||