| java.lang.Object com.sun.org.apache.xml.internal.resolver.helpers.Namespaces
Namespaces | public class Namespaces (Code) | | Static Namespace query methods.
This class defines a set of static methods that can be called
to analyze the namespace properties of DOM nodes.
author: Norman Walsh author: Norman.Walsh@Sun.COM version: 1.0 |
Method Summary | |
public static String | getLocalName(Element element) Returns the "localname" part of a QName, which is the whole
name if it has no prefix.
Parameters: element - The QName of an element. | public static String | getNamespaceURI(Node node, String prefix) Returns the namespace URI for the specified prefix at the
specified context node.
Parameters: node - The context node. Parameters: prefix - The prefix. | public static String | getNamespaceURI(Element element) Returns the namespace URI for the namespace to which the
element belongs.
Parameters: element - The element. | public static String | getPrefix(Element element) Returns the "prefix" part of a QName or the empty string (not
null) if the name has no prefix.
Parameters: element - The QName of an element. |
getLocalName | public static String getLocalName(Element element)(Code) | | Returns the "localname" part of a QName, which is the whole
name if it has no prefix.
Parameters: element - The QName of an element. The local part of a QName. |
getNamespaceURI | public static String getNamespaceURI(Node node, String prefix)(Code) | | Returns the namespace URI for the specified prefix at the
specified context node.
Parameters: node - The context node. Parameters: prefix - The prefix. The namespace URI associated with the prefix, ornull if no namespace declaration exists for the prefix. |
getNamespaceURI | public static String getNamespaceURI(Element element)(Code) | | Returns the namespace URI for the namespace to which the
element belongs.
Parameters: element - The element. The namespace URI associated with the namespace of theelement, or null if no namespace declaration exists for it. |
getPrefix | public static String getPrefix(Element element)(Code) | | Returns the "prefix" part of a QName or the empty string (not
null) if the name has no prefix.
Parameters: element - The QName of an element. The prefix part of the element name. |
|
|