Interface PrefixToModule
-
- All Superinterfaces:
ParserNamespace<String,QNameModule>
- All Known Implementing Classes:
PrefixToModuleMap
public interface PrefixToModule extends ParserNamespace<String,QNameModule>
Source-specific mapping of prefixes to namespaces.
-
-
Field Summary
Fields Modifier and Type Field Description static NamespaceBehaviour<String,QNameModule,@NonNull PrefixToModule>
BEHAVIOUR
static String
DEFAULT_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QNameModule
get(String prefix)
Returns QNameModule (namespace + revision) associated with supplied prefix.@Nullable QNameModule
getByNamespace(String namespace)
Returns QNameModule (namespace + revision) associated with XML namespace (URI).
-
-
-
Field Detail
-
BEHAVIOUR
static final NamespaceBehaviour<String,QNameModule,@NonNull PrefixToModule> BEHAVIOUR
-
DEFAULT_PREFIX
static final String DEFAULT_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
QNameModule get(String prefix)
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
@Nullable QNameModule getByNamespace(String namespace)
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
-
-