@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 StringBuilder |
appendQName(StringBuilder sb,
QName qname,
QNameModule lastModule)
Append a QName, potentially taking into account last QNameModule encountered in the serialized path.
|
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.
|
createQName, deserialize, deserializeKeyValue, getDataContextTree, serializepublic AbstractModuleStringInstanceIdentifierCodec()
protected abstract Module moduleForPrefix(@Nonnull String prefix)
prefix - Prefixprotected 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)
protected StringBuilder appendQName(StringBuilder sb, QName qname, @Nullable QNameModule lastModule)
sb - target StringBuilderqname - QName to appendlastModule - last QNameModule encountered, may be nullCopyright © 2018 OpenDaylight. All rights reserved.