All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.parser.XMLAttr

java.lang.Object
   |
   +----oracle.xml.parser.XMLNode
           |
           +----oracle.xml.parser.XMLAttr

public class XMLAttr
extends XMLNode
implements NSAttr, Serializable
This class implements the DOM Attr interface and holds information on each attribute of an element.

See Also:
Attr, NodeFactory, setNodeFactory

Constructor Index

 o XMLAttr(String, String)
Construct attribute with given name and value.

Method Index

 o getExpandedName()
Get the fully resolved name for this element/attribute
 o getLocalName()
Get the local Name for this element/arrtibute
 o getName()
Gets the attribute name.
 o getNamespace()
Get the resolved Namespace for this element/attribute
 o getNodeValue()
Gets the value of this node, depending on its type
 o getParentNode()
Gets the parent of this node.
 o getQualifiedName()
Gets the attribute name.
 o getSpecified()
Returns true if the attribute was specified explicity in the element
 o getValue()
Gets the attribute value.
 o setNodeValue(String)
Sets the value of this node, depending on its type
 o setValue(String)
Sets the value.

Constructors

 o XMLAttr
 public XMLAttr(String n,
                String v)
Construct attribute with given name and value.

Parameters:
n - Name of the attribute
v - Value of the attribute

Methods

 o getName
 public String getName()
Gets the attribute name.

Returns:
attribute name
 o getQualifiedName
 public String getQualifiedName()
Gets the attribute name.

Returns:
attribute name
 o getNamespace
 public String getNamespace()
Get the resolved Namespace for this element/attribute

 o getLocalName
 public String getLocalName()
Get the local Name for this element/arrtibute

 o getExpandedName
 public String getExpandedName()
Get the fully resolved name for this element/attribute

 o getNodeValue
 public String getNodeValue() throws DOMException
Gets the value of this node, depending on its type

Returns:
Value of this node
Throws: 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.
Overrides:
getNodeValue in class XMLNode
 o getValue
 public String getValue()
Gets the attribute value.

Returns:
attribute value
 o setValue
 public void setValue(String arg)
Sets the value.

Parameters:
arg - Value to set
 o getParentNode
 public Node getParentNode()
Gets the parent of this node. All nodes, except 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.

Returns:
The parent of this node
Overrides:
getParentNode in class XMLNode
 o getSpecified
 public boolean getSpecified()
Returns true if the attribute was specified explicity in the element

Returns:
true, if the attribute was specified explicitly, false, if it was not
 o setNodeValue
 public void setNodeValue(String nodeValue) throws DOMException
Sets the value of this node, depending on its type

Throws: 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.
Overrides:
setNodeValue in class XMLNode

All Packages  Class Hierarchy  This Package  Previous  Next  Index