|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.xml.parser.v2.XMLNode
|
+--oracle.xml.parser.v2.XMLNSNode
|
+--oracle.xml.parser.v2.XMLAttr
This class implements the DOM Attr interface and holds information on each attribute of an element.
Attr, NodeFactory, DOMParser.setNodeFactory(oracle.xml.parser.v2.NodeFactory), Serialized Form| Field Summary |
| 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 |
| Fields inherited from interface org.w3c.dom.validation.NodeEditVAL |
VAL_FALSE, VAL_INCOMPLETE, VAL_NS_WF, VAL_SCHEMA, VAL_TRUE, VAL_UNKNOWN, VAL_WF |
| Constructor Summary | |
XMLAttr()Deprecated. use createAttribute(String) or createAttributeNS(String, String) of XMLDocument | |
XMLAttr(java.lang.String n, java.lang.String v)Deprecated. use createAttribute(String) method of XMLDocument | |
XMLAttr(java.lang.String name, java.lang.String prefix, java.lang.String namespace, java.lang.String v)Deprecated. use createAttributeNS(String, String) method of XMLDocument | |
XMLAttr(java.lang.String name, java.lang.String prefix, java.lang.String qname, java.lang.String namespace, java.lang.String v)Deprecated. use crateAttribute(String) or createAttributeNS(String, String) of XMLDocument | |
| Method Summary | |
XMLNode |
addText(java.lang.String str)Append the given value to the attribute value |
java.lang.String |
getExpandedName()Gets the fully resolved Name for this attribute |
java.lang.String |
getLocalName()Gets the Local Name of this node |
java.lang.String |
getName()Gets the attribute name. |
java.lang.String |
getNamespaceURI()Gets the namespace URI of this node. |
XMLAttr |
getNextAttribute()Gets the next attribute if any |
Node |
getNextSibling()Gets The node immediately following this node. |
java.lang.String |
getNodeName()Gets the name of this node, depending on its type |
short |
getNodeType()Gets a code representing the type of the underlying object |
java.lang.String |
getNodeValue()Gets the value of this node, depending on its type |
Element |
getOwnerElement()Gets the element which owns this attribute |
Node |
getParentNode()Gets the parent of this node. |
java.lang.String |
getPrefix()Get the namespace prefix for this element. |
XMLAttr |
getPrevAttribute()Deprecated. |
Node |
getPreviousSibling()Gets the node immediately preceding this node. |
java.lang.String |
getQualifiedName()Gets the qualified name for this attribute |
boolean |
getSpecified()Returns true if the attribute was specified explicity in the element |
java.lang.String |
getValue()Gets the attribute value. |
void |
readExternal(java.io.ObjectInput inArg)This method restores the information written by writeExternal. |
void |
setNodeValue(java.lang.String nodeValue)Sets the value of this node, depending on its type |
void |
setPrefix(java.lang.String prefix)Sets the prefix for attribute Note that setting the prefix, when permitted, changes the nodeName. |
void |
setValue(java.lang.String arg)Sets the value. |
void |
writeExternal(java.io.ObjectOutput outArg)This method saves the state of the object. |
| Methods inherited from class oracle.xml.parser.v2.XMLNSNode |
addText, appendChild, getChildNodes, getFirstChild, getLastChild, getText, insertBefore, normalize, removeChild, replaceChild |
| Methods inherited from class oracle.xml.parser.v2.XMLNode |
addEventListener, canAppendChild, canInsertBefore, canRemoveChild, canReplaceChild, cloneNode, dispatchEvent, getAttributes, getColumnNumber, getDebugMode, getDefaultValue, getEnumeratedValues, getLineNumber, getOwnerDocument, getPrimitiveTypeId, getProperty, getSystemId, getXMLError, hasAttributes, hasChildNodes, isDocumentFlag, isNodeFlag, isSupported, nodeValidity, print, print, print, print, removeEventListener, reportSAXEvents, resetNodeFlag, selectNodes, selectNodes, selectSingleNode, selectSingleNode, setDebugInfo, setNodeFlag, setNodeFlag, setNodeFlag, setProperty, transformNode, valueOf, valueOf |
| 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.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getOwnerDocument, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild |
| Methods inherited from interface oracle.xml.util.NSName |
getNamespace |
| Constructor Detail |
public XMLAttr()
public XMLAttr(java.lang.String n,
java.lang.String v)
n - Name of the attributev - Value of the attribute
public XMLAttr(java.lang.String name,
java.lang.String prefix,
java.lang.String namespace,
java.lang.String v)
name - Local name of the attributeprefix - Prefix of the attributenamespace - Namespace of the attributev - Value of the attribute
public XMLAttr(java.lang.String name,
java.lang.String prefix,
java.lang.String qname,
java.lang.String namespace,
java.lang.String v)
name - Local name of the attributeprefix - Prefix of the attributeqname - Qname of the attributenamespace - Namespace of the attributev - Value of the attribute| Method Detail |
public short getNodeType()
getNodeType in interface NodegetNodeType in class XMLNodepublic java.lang.String getNodeName()
getNodeName in interface NodegetNodeName in class XMLNodepublic java.lang.String getName()
getName in interface Attrpublic java.lang.String getLocalName()
getLocalName in interface NodegetLocalName in class XMLNodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface NodegetNamespaceURI in class XMLNodepublic java.lang.String getPrefix()
getPrefix in interface NodegetPrefix in class XMLNode
public void setPrefix(java.lang.String prefix)
throws DOMException
setPrefix in interface NodesetPrefix in class XMLNodeprefix - Sets the prefix of the nodeDOMException - if any DOM Exception occurspublic java.lang.String getValue()
getValue in interface Attr
public java.lang.String getNodeValue()
throws DOMException
getNodeValue in interface NodegetNodeValue in class XMLNodeDOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.
public void setValue(java.lang.String arg)
throws DOMException
setValue in interface Attrarg - Value to setDOMException
public void setNodeValue(java.lang.String nodeValue)
throws DOMException
setNodeValue in interface NodesetNodeValue in class XMLNodenodeValue - the value of thenode to be setDOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.public Node getParentNode()
Document, DocumentFragment, and Attr may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.getParentNode in interface NodegetParentNode in class XMLNodepublic Element getOwnerElement()
getOwnerElement in interface Attrpublic boolean getSpecified()
getSpecified in interface Attrtrue, if the attribute was specified explicitly, false, if it was notpublic Node getNextSibling()
null.getNextSibling in interface NodegetNextSibling in class XMLNodepublic Node getPreviousSibling()
null.getPreviousSibling in interface NodegetPreviousSibling in class XMLNodepublic java.lang.String getQualifiedName()
getQualifiedName in interface NSNamepublic java.lang.String getExpandedName()
getExpandedName in interface NSNamepublic XMLAttr getNextAttribute()
public XMLNode addText(java.lang.String str)
addText in class XMLNSNodestr - - text to be added
public void writeExternal(java.io.ObjectOutput outArg)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class XMLNodeoutArg - The ObjectOutput stream used to write the compressed streamjava.io.IOException - is thrown when there is an exception while writing the compressed stream.
public void readExternal(java.io.ObjectInput inArg)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class XMLNodeinArg - is the ObjectInput stream used to read the compressed streamjava.io.IOException - is thrown when there is an exception while reading the compressed stream.java.lang.ClassNotFoundException - is thrown when the class is not foundpublic XMLAttr getPrevAttribute()
|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||