public class FallbackPrefixMappings extends java.lang.Object implements PrefixMappings
NamespaceMappings
such as an ArooaDescriptor
, but
also fallback to Mappings remembered from Parsing.
This is a bit of a bodge because unknown prefixes need be remembered for the
UnknownInstance
to work. UnknownInstance
needs to change
to cope with invalid XML.Constructor and Description |
---|
FallbackPrefixMappings(NamespaceMappings namespaceMappings) |
Modifier and Type | Method and Description |
---|---|
void |
add(NamespaceMappings otherMappings) |
java.lang.String[] |
getPrefixes()
Get all the prefixes mapped.
|
java.lang.String |
getPrefixFor(java.net.URI uri) |
java.net.URI |
getUriFor(java.lang.String prefix) |
void |
put(java.lang.String prefix,
java.net.URI uri) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty
elementFor, qTagFor
getQName
public FallbackPrefixMappings(NamespaceMappings namespaceMappings)
public void add(NamespaceMappings otherMappings) throws DuplicateMappingsException
add
in interface PrefixMappings
DuplicateMappingsException
public void put(java.lang.String prefix, java.net.URI uri) throws DuplicateMappingsException
put
in interface PrefixMappings
DuplicateMappingsException
public java.lang.String[] getPrefixes()
NamespaceMappings
getPrefixes
in interface NamespaceMappings
public java.net.URI getUriFor(java.lang.String prefix)
getUriFor
in interface PrefixMapping
public java.lang.String getPrefixFor(java.net.URI uri)
getPrefixFor
in interface UriMapping