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
-
XMLAttr(String, String)
- Construct attribute with given name and value.
-
getExpandedName()
- Get the fully resolved name for this element/attribute
-
getLocalName()
- Get the local Name for this element/arrtibute
-
getName()
- Gets the attribute name.
-
getNamespace()
- Get the resolved Namespace for this element/attribute
-
getNodeValue()
- Gets the value of this node, depending on its type
-
getParentNode()
- Gets the parent of this node.
-
getQualifiedName()
- Gets the attribute name.
-
getSpecified()
- Returns true if the attribute was specified explicity in the element
-
getValue()
- Gets the attribute value.
-
setNodeValue(String)
- Sets the value of this node, depending on its type
-
setValue(String)
- Sets the value.
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
getName
public String getName()
- Gets the attribute name.
- Returns:
- attribute name
getQualifiedName
public String getQualifiedName()
- Gets the attribute name.
- Returns:
- attribute name
getNamespace
public String getNamespace()
- Get the resolved Namespace for this element/attribute
getLocalName
public String getLocalName()
- Get the local Name for this element/arrtibute
getExpandedName
public String getExpandedName()
- Get the fully resolved name for this element/attribute
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
getValue
public String getValue()
- Gets the attribute value.
- Returns:
- attribute value
setValue
public void setValue(String arg)
- Sets the value.
- Parameters:
- arg - Value to set
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
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
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