|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.org.apache.xml.internal.resolver.helpers.Namespaces
public class Namespaces
Static Namespace query methods.
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 String |
getLocalName(Element element)
Returns the "localname" part of a QName, which is the whole name if it has no prefix. |
static String |
getNamespaceURI(Element element)
Returns the namespace URI for the namespace to which the element belongs. |
static String |
getNamespaceURI(Node node,
String prefix)
Returns the namespace URI for the specified prefix at the specified context node. |
static String |
getPrefix(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 String getPrefix(Element element)
element - The QName of an element.
public static String getLocalName(Element element)
element - The QName of an element.
public static String getNamespaceURI(Node node,
String prefix)
node - The context node.prefix - The prefix.
public static String getNamespaceURI(Element element)
element - The element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||