Interface PrefixToModule
- All Superinterfaces:
ParserNamespace<String,
QNameModule>
- All Known Implementing Classes:
PrefixToModuleMap
Source-specific mapping of prefixes to namespaces.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamespaceBehaviour<String,
QNameModule, @NonNull PrefixToModule> static final String
-
Method Summary
Modifier and TypeMethodDescriptionReturns QNameModule (namespace + revision) associated with supplied prefix.@Nullable QNameModule
getByNamespace
(String namespace) Returns QNameModule (namespace + revision) associated with XML namespace (URI).
-
Field Details
-
BEHAVIOUR
-
DEFAULT_PREFIX
- See Also:
-
-
Method Details
-
get
Returns QNameModule (namespace + revision) associated with supplied prefix.- Parameters:
prefix
- Prefix- Returns:
- QNameModule associated with supplied prefix, or null if prefix is not defined.
-
getByNamespace
Returns QNameModule (namespace + revision) associated with XML namespace (URI).- Parameters:
namespace
- XML Namespace- Returns:
- QNameModule associated with supplied namespace, or null if prefix is not defined.
- Throws:
IllegalArgumentException
- if the input string is not valid URI
-