com.caucho.xml2
Class QAttr
java.lang.Object
com.caucho.xml2.QAbstractNode
com.caucho.xml2.QNode
com.caucho.xml2.QAttr
- All Implemented Interfaces:
- CauchoNode, java.io.Serializable, org.w3c.dom.Attr, org.w3c.dom.Node
public class QAttr
- extends QNode
- implements org.w3c.dom.Attr
- See Also:
- Serialized Form
| 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 |
protected |
QAttr(QDocument owner,
javax.xml.namespace.QName name)
|
|
QAttr(javax.xml.namespace.QName name)
|
protected |
QAttr(javax.xml.namespace.QName name,
java.lang.String value)
|
|
QAttr(java.lang.String name)
|
| Methods inherited from class com.caucho.xml2.QNode |
appendChild, checkValid, equals, equals, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextPreorder, getNextSibling, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setTextContent |
| Methods inherited from class com.caucho.xml2.QAbstractNode |
baseURI, cloneNode, compareDocumentPosition, compareTreePosition, getBaseURI, getColumn, getDependencyList, getFeature, getFilename, getInterface, getLine, getNextContent, getOwnerDocument, getParentNode, getPreviousContent, getTextContent, getTextValue, getUserData, hasAttributes, 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, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData |
QAttr
public QAttr(java.lang.String name)
QAttr
public QAttr(javax.xml.namespace.QName name)
QAttr
protected QAttr(javax.xml.namespace.QName name,
java.lang.String value)
QAttr
protected QAttr(QDocument owner,
javax.xml.namespace.QName name)
getOwnerElement
public org.w3c.dom.Element getOwnerElement()
- Specified by:
getOwnerElement in interface org.w3c.dom.Attr
getNodeType
public short getNodeType()
- Specified by:
getNodeType in interface org.w3c.dom.Node
getQName
public javax.xml.namespace.QName getQName()
- Returns the full QName.
- Overrides:
getQName in class QAbstractNode
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeName in interface org.w3c.dom.Node
isId
public boolean isId()
- Specified by:
isId in interface org.w3c.dom.Attr
getName
public java.lang.String getName()
- Specified by:
getName in interface org.w3c.dom.Attr
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix in interface CauchoNode- Specified by:
getPrefix in interface org.w3c.dom.Node- Overrides:
getPrefix in class QAbstractNode
getLocalName
public java.lang.String getLocalName()
- Specified by:
getLocalName in interface CauchoNode- Specified by:
getLocalName in interface org.w3c.dom.Node- Overrides:
getLocalName in class QAbstractNode
getCanonicalName
public java.lang.String getCanonicalName()
- Description copied from interface:
CauchoNode
- Returns the node's canonical name.
e.g. for foo:bar:baz, the prefix name might be '{/caucho/1.0}baz'
- Specified by:
getCanonicalName in interface CauchoNode- Overrides:
getCanonicalName in class QAbstractNode
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI in interface CauchoNode- Specified by:
getNamespaceURI in interface org.w3c.dom.Node- Overrides:
getNamespaceURI in class QAbstractNode
getNodeValue
public java.lang.String getNodeValue()
- Specified by:
getNodeValue in interface org.w3c.dom.Node- Overrides:
getNodeValue in class QNode
getSchemaTypeInfo
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo in interface org.w3c.dom.Attr
setNodeValue
public void setNodeValue(java.lang.String value)
- Specified by:
setNodeValue in interface org.w3c.dom.Node- Overrides:
setNodeValue in class QNode
getValue
public java.lang.String getValue()
- Specified by:
getValue in interface org.w3c.dom.Attr
setValue
public void setValue(java.lang.String value)
- Specified by:
setValue in interface org.w3c.dom.Attr
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified in interface org.w3c.dom.Attr
setSpecified
public void setSpecified(boolean specified)
print
public void print(XmlPrinter out)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object