@Beta public abstract class AbstractModuleStringIdentityrefCodec extends AbstractStringIdentityrefCodec
Constructor and Description |
---|
AbstractModuleStringIdentityrefCodec() |
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
appendQName(StringBuilder sb,
QName qname) |
protected StringBuilder |
appendQName(StringBuilder sb,
QName qname,
@Nullable 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 @Nullable Module |
moduleForPrefix(@NonNull String prefix)
Resolve a string prefix into the corresponding module.
|
protected QName |
parseQName(String str) |
protected abstract @Nullable String |
prefixForNamespace(@NonNull URI namespace)
Return string prefix for a particular namespace, allocating a new one if necessary.
|
deserialize, serialize
public AbstractModuleStringIdentityrefCodec()
protected abstract @Nullable Module moduleForPrefix(@NonNull String prefix)
prefix
- Prefixprotected final QName createQName(String prefix, String localName)
prefix
- Prefix for namespacelocalName
- local nameprotected abstract @Nullable 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 © 2019 OpenDaylight. All rights reserved.