XMLAttr - Oracle 9i

Syntax

All Implemented Interfaces
org.w3c.dom.Attr, java.lang.Cloneable, org.w3c.dom.Node, NSName,
java.io.Serializable, oracle.xml.parser.v2.XMLConstants

Description
This class implements the DOM Attr interface and holds information on each attribute of an element.

See Also
org.w3c.dom.Attr, NodeFactory, setNodeFactory(NodeFactory)

XMLAttr

XMLAttr

inherited member summary

inherited member summary

inherited member summary

Constructor
XMLAttr(String, String)

public XMLAttr(java.lang.String n, java.lang.String v)

Construct attribute with given name and value.

Parameters

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

XMLAttr(String, String, String, String)

public XMLAttr(java.lang.String name, java.lang.String prefix, java.lang.String ns, java.lang.String v)

Namespace support

Methods
cloneNode(boolean)

public org.w3c.dom.Node cloneNode(boolean deep)

Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
The duplicate node has no parent ( parentNode returns null.). Cloning an Element copies all attributes and their values, including those generated by the XML processor to represent defaulted attributes, but this method does not copy any text it contains unless it is a deep clone, since the text is contained in a child Text node. Cloning any other type of node simply returns a copy of this node.

Specified By
org.w3c.dom.Node.cloneNode(boolean) in interface org.w3c.dom.Node

Overrides
cloneNode(boolean) in class XMLNode

Parameters

deep - If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).

Returns
The duplicate node.

getExpandedName()

public java.lang.String getExpandedName()

Get the fully resolved Name for this attribute

Specified By

getExpandedName() in interface NSName

Returns
the fully resolved Name

getLocalName()

public java.lang.String getLocalName()

Get the local Name for this attribute

Specified By

getLocalName() in interface NSName

Returns
the local Name

getName()

public java.lang.String getName()

Gets the attribute name.

Specified By
org.w3c.dom.Attr.getName() in interface org.w3c.dom.Attr

Returns
attribute name

getNamespace()

public java.lang.String getNamespace()

Get the resolved Namespace for this attribute

Specified By

getNamespace() in interface NSName

Returns
the resolved Namespace

getNodeValue()

public java.lang.String getNodeValue()

Gets the value of this node, depending on its type

Specified By
org.w3c.dom.Node.getNodeValue() in interface org.w3c.dom.Node

Overrides

getNodeValue() in class XMLNode

Returns
Value of this node

Throws
org.w3c.dom.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.

getParentNode()
public org.w3c.dom.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.

Specified By
org.w3c.dom.Node.getParentNode() in interface org.w3c.dom.Node

Overrides

getParentNode() in class XMLNode

Returns
The parent of this node

getPrefix()

public java.lang.String getPrefix()

Get the namespace prefix for this attribute

Specified By

getPrefix() in interface NSName

Returns
the namespace prefix

getQualifiedName()

public java.lang.String getQualifiedName()

Gets the qualified name for this attribute

Specified By

getQualifiedName() in interface NSName

Returns
the qualified name

getSpecified()

public boolean getSpecified()

Returns true if the attribute was specified explicity in the element

Specified By
org.w3c.dom.Attr.getSpecified() in interface org.w3c.dom.Attr

Returns
true, if the attribute was specified explicitly, false, if it was not

getValue()

public java.lang.String getValue() Gets the attribute value.

Specified By
org.w3c.dom.Attr.getValue() in interface org.w3c.dom.Attr

Returns
attribute value

setNodeValue(String)

public void setNodeValue(java.lang.String nodeValue)

Sets the value of this node, depending on its type

Specified By
org.w3c.dom.Node.setNodeValue(String) in interface org.w3c.dom.Node

Overrides
setNodeValue(String) in class XMLNode

Throws
org.w3c.dom.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.

setValue(String)

public void setValue(java.lang.String arg)

Sets the value.

Specified By
org.w3c.dom.Attr.setValue(String) in interface org.w3c.dom.Attr

Parameters
arg - Value to set


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics