public class PDFInternalNamespaces
extends java.lang.Object
implements javax.xml.namespace.NamespaceContext
Additionally, it provides methods, to handle a default namespace and to set the namespace with a addXX()-method.
Constructor and Description |
---|
PDFInternalNamespaces() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Hashtable<java.lang.String,java.lang.String> newNamespaces) |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returning the namespace belonging to the prefix.
|
java.lang.String |
getPrefix(java.lang.String namespace)
Returning the prefix belonging to the namespace.
|
java.util.Iterator<java.lang.String> |
getPrefixes(java.lang.String expectedNamespace)
This method does what the name suggests.
|
void |
setDefault(DefaultNamespace defaultNS)
XPath inside the JDK does not work with an empty string as a prefix.
|
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface javax.xml.namespace.NamespaceContext
public java.lang.String getPrefix(java.lang.String namespace)
getPrefix
in interface javax.xml.namespace.NamespaceContext
public java.util.Iterator<java.lang.String> getPrefixes(java.lang.String expectedNamespace)
getPrefixes
in interface javax.xml.namespace.NamespaceContext
public void setDefault(DefaultNamespace defaultNS)
XMLConstants.DEFAULT_NS_PREFIX
public void add(java.util.Hashtable<java.lang.String,java.lang.String> newNamespaces)
Copyright (C) PDFUnit.com. See here for license.