com.caucho.xml
Class QAttributedNode

java.lang.Object
  extended by com.caucho.xml.QAbstractNode
      extended by com.caucho.xml.QNode
          extended by com.caucho.xml.QAttributedNode
All Implemented Interfaces:
CauchoNode, java.io.Serializable, org.w3c.dom.Node
Direct Known Subclasses:
QElement

public abstract class QAttributedNode
extends QNode

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.xml.QNode
QNode.ChildNodeList
 
Field Summary
 
Fields inherited from class com.caucho.xml.QNode
_firstChild, _lastChild
 
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_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
 
Constructor Summary
QAttributedNode()
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Returns the named attribute.
 org.w3c.dom.Attr getAttributeNode(java.lang.String name)
          Returns the attribute specified by the name.
 org.w3c.dom.Attr getAttributeNodeNS(java.lang.String uri, java.lang.String local)
           
 java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String local)
          Returns the attribute specified by a namespace.
 org.w3c.dom.NamedNodeMap getAttributes()
          Returns a map of the attributes.
 org.w3c.dom.Attr getFirstAttribute()
          Returns the first attribute in the attribute list.
 boolean hasAttribute(java.lang.String name)
           
 boolean hasAttributeNS(java.lang.String uri, java.lang.String local)
           
 boolean hasAttributes()
          Returns true if the element has attributes.
 void removeAttribute(java.lang.String name)
          Removes the named attribute.
 org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr attr)
          Removes the matching attribute.
 org.w3c.dom.Attr removeAttributeNodeNS(org.w3c.dom.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)
           
 org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr attr)
          Sets an attribute, specified by the object.
 org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr attr)
           
 void setAttributeNS(java.lang.String uri, java.lang.String local, java.lang.String value)
           
 void setIdAttribute(java.lang.String name, boolean isId)
          Sets an attribute, specified by the object.
 void setIdAttributeNode(org.w3c.dom.Attr attr, boolean isId)
          Sets an attribute, specified by the object.
 void setIdAttributeNS(java.lang.String namespaceURI, java.lang.String localName, boolean isId)
          Sets an attribute, specified by the object.
 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
appendChild, checkValid, equals, equals, getChildNodes, getFirstChild, getLastChild, getNextPreorder, getNextSibling, getNodeValue, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setTextContent
 
Methods inherited from class com.caucho.xml.QAbstractNode
baseURI, cloneNode, compareDocumentPosition, compareTreePosition, getBaseURI, getCanonicalName, getColumn, getDependencyList, getFeature, getFilename, getInterface, getLine, getLocalName, getNamespaceURI, getNextContent, getOwnerDocument, getParentNode, getPrefix, getPreviousContent, getQName, getTextContent, getTextValue, getUserData, hasContent, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, print, printHtml, printPretty, setFeature, setLocation, setPrefix, setUserData, supports
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
getNodeName, getNodeType
 

Constructor Detail

QAttributedNode

public QAttributedNode()
Method Detail

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Returns a map of the attributes.

Specified by:
getAttributes in interface org.w3c.dom.Node
Overrides:
getAttributes in class QNode

hasAttributes

public boolean hasAttributes()
Returns true if the element has attributes.

Specified by:
hasAttributes in interface org.w3c.dom.Node
Overrides:
hasAttributes in class QAbstractNode

getFirstAttribute

public org.w3c.dom.Attr getFirstAttribute()
Returns the first attribute in the attribute list.


getAttribute

public java.lang.String getAttribute(java.lang.String name)
Returns the named attribute.


getAttributeNS

public java.lang.String getAttributeNS(java.lang.String namespaceURI,
                                       java.lang.String local)
Returns the attribute specified by a namespace.


hasAttribute

public boolean hasAttribute(java.lang.String name)

hasAttributeNS

public boolean hasAttributeNS(java.lang.String uri,
                              java.lang.String local)

getAttributeNode

public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
Returns the attribute specified by the name.


getAttributeNodeNS

public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String uri,
                                           java.lang.String local)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
                  throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException

setAttributeNS

public void setAttributeNS(java.lang.String uri,
                           java.lang.String local,
                           java.lang.String value)

setIdAttribute

public void setIdAttribute(java.lang.String name,
                           boolean isId)
                    throws org.w3c.dom.DOMException
Sets an attribute, specified by the object.

Throws:
org.w3c.dom.DOMException

setIdAttributeNS

public void setIdAttributeNS(java.lang.String namespaceURI,
                             java.lang.String localName,
                             boolean isId)
                      throws org.w3c.dom.DOMException
Sets an attribute, specified by the object.

Throws:
org.w3c.dom.DOMException

setIdAttributeNode

public void setIdAttributeNode(org.w3c.dom.Attr attr,
                               boolean isId)
                        throws org.w3c.dom.DOMException
Sets an attribute, specified by the object.

Throws:
org.w3c.dom.DOMException

setAttributeNode

public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr attr)
                                  throws org.w3c.dom.DOMException
Sets an attribute, specified by the object.

Throws:
org.w3c.dom.DOMException

setAttributeNodeNS

public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr attr)
                                    throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException

removeAttribute

public void removeAttribute(java.lang.String name)
Removes the named attribute.


removeAttributeNS

public void removeAttributeNS(java.lang.String uri,
                              java.lang.String name)
Removes the attribute specified by the localname and namespace.


removeAttributeNode

public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr attr)
Removes the matching attribute.


removeAttributeNodeNS

public org.w3c.dom.Attr removeAttributeNodeNS(org.w3c.dom.Attr attr)
Removes the matching attribute.


unlink

public QAttr unlink(java.lang.String uri,
                    java.lang.String local)
Removes the attribute named by the URI and local name.