public class PrefixToModuleMap extends Object implements PrefixToModule
DEFAULT_PREFIX
Constructor and Description |
---|
PrefixToModuleMap() |
PrefixToModuleMap(boolean preLinkageMap) |
Modifier and Type | Method and Description |
---|---|
QNameModule |
get(String prefix)
Returns QNameModule (namespace + revision) associated with supplied
prefix.
|
QNameModule |
getByNamespace(String namespace)
Returns QNameModule (namespace + revision) associated with XML namespace
(URI).
|
boolean |
isPreLinkageMap()
Pre-linkage map does not consider revision-dates of modules and it contains module namespaces only.
|
void |
put(String prefix,
QNameModule qNameModule) |
public PrefixToModuleMap()
public PrefixToModuleMap(boolean preLinkageMap)
public void put(String prefix, QNameModule qNameModule)
@Nullable public QNameModule get(@Nonnull String prefix)
PrefixToModule
get
in interface IdentifierNamespace<String,QNameModule>
get
in interface PrefixToModule
prefix
- Prefix@Nullable public QNameModule getByNamespace(String namespace) throws URISyntaxException
PrefixToModule
getByNamespace
in interface PrefixToModule
namespace
- XML NamespaceURISyntaxException
- if the input string is not valid URIpublic boolean isPreLinkageMap()
PrefixToModule
isPreLinkageMap
in interface PrefixToModule
Copyright © 2018 OpenDaylight. All rights reserved.