public class FallbackPrefixMappings extends 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) |
String[] |
getPrefixes()
Get all the prefixes mapped.
|
String |
getPrefixFor(URI uri) |
URI |
getUriFor(String prefix) |
void |
put(String prefix,
URI uri) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemptyelementFor, qTagForgetQNamepublic FallbackPrefixMappings(NamespaceMappings namespaceMappings)
public void add(NamespaceMappings otherMappings) throws DuplicateMappingsException
add in interface PrefixMappingsDuplicateMappingsExceptionpublic void put(String prefix, URI uri) throws DuplicateMappingsException
put in interface PrefixMappingsDuplicateMappingsExceptionpublic String[] getPrefixes()
NamespaceMappingsgetPrefixes in interface NamespaceMappingspublic URI getUriFor(String prefix)
getUriFor in interface PrefixMappingpublic String getPrefixFor(URI uri)
getPrefixFor in interface UriMappingCopyright © 2023. All rights reserved.