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)
PrefixToModuleget in interface IdentifierNamespace<String,QNameModule>get in interface PrefixToModuleprefix - Prefix@Nullable public QNameModule getByNamespace(String namespace) throws URISyntaxException
PrefixToModulegetByNamespace in interface PrefixToModulenamespace - XML NamespaceURISyntaxException - if the input string is not valid URIpublic boolean isPreLinkageMap()
PrefixToModuleisPreLinkageMap in interface PrefixToModuleCopyright © 2018 OpenDaylight. All rights reserved.