@Beta public abstract class AbstractModuleStringInstanceIdentifierCodec extends AbstractStringInstanceIdentifierCodec
AbstractStringInstanceIdentifierCodec, which instantiates
QNames by first resolving the namespace and then looking the target namespace
in the list of currently-subscribed modules.| Constructor and Description |
|---|
AbstractModuleStringInstanceIdentifierCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
appendQName(StringBuilder sb,
QName qname) |
protected QName |
createQName(String prefix,
String localName)
Create a QName for a prefix and local name.
|
protected abstract Module |
moduleForPrefix(String prefix)
Resolve a string prefix into the corresponding module.
|
protected QName |
parseQName(String str) |
protected abstract String |
prefixForNamespace(URI namespace)
Return string prefix for a particular namespace, allocating a new one if necessary.
|
deserialize, deserializeKeyValue, getDataContextTree, serializepublic AbstractModuleStringInstanceIdentifierCodec()
protected abstract Module moduleForPrefix(@Nonnull String prefix)
prefix - protected final QName createQName(@Nonnull String prefix, @Nonnull String localName)
prefix - Prefix for namespacelocalName - local name@Nullable protected abstract String prefixForNamespace(@Nonnull URI namespace)
namespace - Namespace to mapprotected final StringBuilder appendQName(StringBuilder sb, QName qname)
Copyright © 2018 OpenDaylight. All rights reserved.