public abstract class ModuleStringIdentityrefCodec extends AbstractModuleStringIdentityrefCodec implements IdentityrefCodec<String>
Modifier and Type | Field and Description |
---|---|
protected SchemaContext |
context |
protected QNameModule |
parentModuleQname |
Constructor and Description |
---|
ModuleStringIdentityrefCodec(SchemaContext context,
QNameModule parentModule) |
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 |
parseQName(String str) |
protected String |
prefixForNamespace(URI namespace)
Return string prefix for a particular namespace, allocating a new one if necessary.
|
createQName, moduleForPrefix
deserialize, serialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserialize, serialize
protected final SchemaContext context
protected final QNameModule parentModuleQname
public ModuleStringIdentityrefCodec(@Nonnull SchemaContext context, @Nonnull QNameModule parentModule)
protected 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.