|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.resolver.helpers.Namespaces
Static Namespace query methods.
Copyright © 2000, 2001 Sun Microsystems, Inc. All Rights Reserved. This software is the proprietary information of Sun Microsystems, Inc. Use is subject to license terms.
This class defines a set of static methods that can be called to analyze the namespace properties of DOM nodes.
Constructor Summary | |
Namespaces()
|
Method Summary | |
static java.lang.String |
getLocalName(org.w3c.dom.Element element)
Returns the "localname" part of a QName, which is the whole name if it has no prefix. |
static java.lang.String |
getNamespaceURI(org.w3c.dom.Element element)
Returns the namespace URI for the namespace to which the element belongs. |
static java.lang.String |
getNamespaceURI(org.w3c.dom.Node node,
java.lang.String prefix)
Returns the namespace URI for the specified prefix at the specified context node. |
static java.lang.String |
getPrefix(org.w3c.dom.Element element)
Returns the "prefix" part of a QName or the empty string (not null) if the name has no prefix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Namespaces()
Method Detail |
public static java.lang.String getPrefix(org.w3c.dom.Element element)
Returns the "prefix" part of a QName or the empty string (not null) if the name has no prefix.
element
- The QName of an element.
public static java.lang.String getLocalName(org.w3c.dom.Element element)
Returns the "localname" part of a QName, which is the whole name if it has no prefix.
element
- The QName of an element.
public static java.lang.String getNamespaceURI(org.w3c.dom.Node node, java.lang.String prefix)
Returns the namespace URI for the specified prefix at the specified context node.
node
- The context node.prefix
- The prefix.
public static java.lang.String getNamespaceURI(org.w3c.dom.Element element)
Returns the namespace URI for the namespace to which the element belongs.
element
- The element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |