|
|
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)
Constructor
XMLAttr(String, String)
Construct attribute with given name and value.
Parameters
n - Name of the attribute v - Value of the attributeXMLAttr(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)
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 NSNameReturns
the fully resolved Name
getLocalName()
public java.lang.String getLocalName()Get the local Name for this attribute
Specified By
getLocalName() in interface NSNameReturns
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 NSNameReturns
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 XMLNodeReturns
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 XMLNodeReturns
The parent of this node
getPrefix()
public java.lang.String getPrefix()Get the namespace prefix for this attribute
Specified By
getPrefix() in interface NSNameReturns
the namespace prefix
getQualifiedName()
public java.lang.String getQualifiedName()Gets the qualified name for this attribute
Specified By
getQualifiedName() in interface NSNameReturns
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
|
|
Oracle 9i Related Tutorials |
|
---|---|
Oracle 10g Tutorial | Oracle 8i Tutorial |
Informatica Tutorial | Oracle 11g Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.