Methods Summary |
---|
public com.sun.org.apache.xerces.internal.xni.NamespaceContext | getNamespaceContext()This method supports all functions in the NamespaceContext utility class
return fNamespaceContext;
|
public java.lang.String | getNamespaceURI(java.lang.String prefix)
if (prefix == null) {
throw new IllegalArgumentException("Prefix can't be null");
}
return fNamespaceContext.getURI(prefix.intern());
|
public java.lang.String | getPrefix(java.lang.String namespaceURI)
if (namespaceURI == null || namespaceURI.trim().length() == 0) {
throw new IllegalArgumentException("URI can't be null or empty String");
}
return fNamespaceContext.getPrefix(namespaceURI.intern());
|
public java.util.Iterator | getPrefixes(java.lang.String namespaceURI)TODO: Namespace doesn't give information giving multiple prefixes for
the same namespaceURI.
if (namespaceURI == null || namespaceURI.trim().length() == 0) {
throw new IllegalArgumentException("URI can't be null or empty String");
}
else {
Vector vector =
((NamespaceSupport) fNamespaceContext).getPrefixes(namespaceURI.intern());
return vector.iterator();
}
|