|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 FormField 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 |
|
protected |
XMLAttr(XMLDocument doc) Protected constructor used to create custom DOM Node using XMLDocument as the factory. |
protected |
XMLAttr(XMLDocument doc, java.lang.String namespace, java.lang.String qname) Protected constructor used to create custom DOM Node using XMLDocument as the factory. |
Method Summary | |
XMLNode |
addText(java.lang.String str) Append the given value to the attribute value |
short |
canRemoveChild(Node oldChild) Determines whether the Node.removeChild operation would make this document not compliant with the VAL_INCOMPLETE validity type. |
java.lang.String |
getExpandedName() Gets the fully resolved Name for this attribute |
Node |
getFirstChild() Gets the first child of this node. |
Node |
getLastChild() Gets the last child of this node. |
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, getText, insertBefore, normalize, removeChild, replaceChild |
Methods inherited from class oracle.xml.parser.v2.XMLNode |
addEventListener, canAppendChild, canInsertBefore, canReplaceChild, cloneNode, dispatchEvent, equals, getAttributes, getColumnNumber, getDebugMode, getDefaultValue, getEnumeratedValues, getLineNumber, getOwnerDocument, getPrimitiveTypeId, getProperty, getQName, getSchemaTypeName, getSystemId, getXMLError, hasAttributes, hasChildNodes, hashCode, isDocumentFlag, isNodeFlag, isSupported, nodeValidity, print, print, print, print, removeEventListener, reportSAXEvents, resetNodeFlag, selectNodes, selectNodes, selectSingleNode, selectSingleNode, setDebugInfo, setNodeFlag, setNodeFlag, setNodeFlag, setProperty, transformNode, valueOf, valueOf, xdbGetNodeId |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getOwnerDocument, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild |
Methods inherited from interface oracle.xml.util.NSName |
getNamespace |
Constructor Detail |
protected XMLAttr(XMLDocument doc)
doc
- - Owner documentprotected XMLAttr(XMLDocument doc, java.lang.String namespace, java.lang.String qname)
doc
- - Owner documentnamespace
- Namespace of the attributeqname
- Qname of the attributepublic XMLAttr()
public XMLAttr(java.lang.String n, java.lang.String v)
n
- Name of the attributev
- Value of the attributepublic 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 attributepublic 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 attributeMethod Detail |
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class XMLNode
public java.lang.String getNodeName()
getNodeName
in interface Node
getNodeName
in class XMLNode
public java.lang.String getName()
getName
in interface Attr
public java.lang.String getLocalName()
getLocalName
in interface Node
getLocalName
in class XMLNode
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface Node
getNamespaceURI
in class XMLNode
public java.lang.String getPrefix()
getPrefix
in interface Node
getPrefix
in class XMLNode
public void setPrefix(java.lang.String prefix) throws DOMException
setPrefix
in interface Node
setPrefix
in class XMLNode
prefix
- 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 Node
getNodeValue
in class XMLNode
DOMException
- 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 Attr
arg
- Value to setDOMException
public void setNodeValue(java.lang.String nodeValue) throws DOMException
setNodeValue
in interface Node
setNodeValue
in class XMLNode
nodeValue
- 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 Node
getParentNode
in class XMLNode
public Element getOwnerElement()
getOwnerElement
in interface Attr
public boolean getSpecified()
getSpecified
in interface Attr
true
, if the attribute was specified explicitly, false
, if it was notpublic Node getNextSibling()
null
.getNextSibling
in interface Node
getNextSibling
in class XMLNode
public Node getPreviousSibling()
null
.getPreviousSibling
in interface Node
getPreviousSibling
in class XMLNode
public short canRemoveChild(Node oldChild)
Node.removeChild
operation would make this document not compliant with the VAL_INCOMPLETE
validity type.canRemoveChild
in interface NodeEditVAL
canRemoveChild
in class XMLNode
oldChild
- Node
to be removed.public java.lang.String getQualifiedName()
getQualifiedName
in interface NSName
public java.lang.String getExpandedName()
getExpandedName
in interface NSName
public XMLAttr getNextAttribute()
public XMLNode addText(java.lang.String str)
addText
in class XMLNSNode
str
- - text to be addedpublic void writeExternal(java.io.ObjectOutput outArg) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class XMLNode
outArg
- 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.Externalizable
readExternal
in class XMLNode
inArg
- 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 Node getFirstChild()
null
.getFirstChild
in interface Node
getFirstChild
in class XMLNSNode
public Node getLastChild()
null
.getLastChild
in interface Node
getLastChild
in class XMLNSNode
public XMLAttr getPrevAttribute()
|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |