public interface ILcdXMLPrefixMap
NamespaceContext
but it also supports
iterating over all used namespaces.Modifier and Type | Method and Description |
---|---|
void |
addPrefix(String aNamespaceURI,
String aPrefix)
Adds the given (namespace, prefix) mapping to this map.
|
int |
getNamespaceCount()
Returns the number of namespaces, available in this map.
|
String |
getNamespaceURI(int aIndex)
Returns the namespace at the given index.
|
String |
getNamespaceURI(String aPrefix)
Returns the namespace, corresponding with the given prefix, or
null if no
namespace is known for the given prefix. |
String |
getPrefix(String aNameSpaceURI)
Returns the prefix, corresponding with the given namespace, or
null if no
prefix is known for the given namespace. |
int getNamespaceCount()
String getNamespaceURI(int aIndex)
aIndex
- the index of the namespace to be returnedIndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getNamespaceCount()
String getNamespaceURI(String aPrefix)
null
if no
namespace is known for the given prefix.aPrefix
- the prefix for which to return its namespace.NullPointerException
- if aPrefix == null
.String getPrefix(String aNameSpaceURI)
null
if no
prefix is known for the given namespace.aNameSpaceURI
- the namespace for which to return its prefix.NullPointerException
- if aNameSpaceURI == null
.void addPrefix(String aNamespaceURI, String aPrefix)
aNamespaceURI
- the namespace to be added.aPrefix
- the prefix, corresponding to the namespace that is added.NullPointerException
- if one of the arguments is null
.