org.exolab.adaptx.xslt.dom
public class Element extends ParentNode
Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Constructor Summary | |
---|---|
Element(String namespace, String localName)
Creates a new Element
|
Method Summary | |
---|---|
void | addAttribute(Attribute attr)
Adds the given Attribute to this Element
|
void | addNamespace(Namespace namespace)
Adds the given Attribute to this Element
|
String | getAttribute(String uri, String localName)
Returns the value of the named attribute, or null if the
node has no such attribute. |
XPathNode | getFirstAttribute()
Returns the first in a list of attribute nodes, or null
if the node has no attributes. |
XPathNode | getFirstNamespace()
Returns the first in a list of namespace nodes, or null
if the node has no namespaces. |
String | getNamespacePrefix(String uri)
Returns the namespace prefix associated with this namespace URI,
as defined in the context of this node. |
String | getNamespaceURI(String prefix)
Returns the namespace URI associated with this namespace prefix,
as defined in the context of this node. |
int | getNodeType()
Returns the type of this node.
|
Parameters: namespace the namespace URI for this node. [May be null] localName the local-name of this node. [Cannot be null]
Parameters: attr the Attribute to add
Parameters: attr the Attribute to add
Parameters: uri The attribute's namespace URI, or null localName The attribute's local name
Returns: The attribute's value, or null if no such attribute exists
Returns: The first in a list of attribute nodes, or null
Returns: The first in a list of namespace nodes, or null
Parameters: uri The namespace URI
Returns: The namespace prefix, or null
Parameters: prefix The namespace prefix
Returns: The namespace URI, or null
Returns: The type of this node