@Beta public abstract class AbstractStringIdentityrefCodec extends Object implements IdentityrefCodec<String>
| Constructor and Description |
|---|
AbstractStringIdentityrefCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
appendQName(StringBuilder sb,
QName qname) |
protected abstract QName |
createQName(String prefix,
String localName)
Create a QName for a prefix and local name.
|
QName |
deserialize(String data)
Produce an object base on input.
|
protected QName |
parseQName(String str) |
protected abstract String |
prefixForNamespace(URI namespace)
Return string prefix for a particular namespace, allocating a new one if necessary.
|
String |
serialize(QName data) |
public QName deserialize(String data)
Deserializerdeserialize in interface Codec<String,QName>deserialize in interface Deserializer<QName,String>deserialize in interface IdentityrefCodec<String>data - Input object@Nullable protected abstract String prefixForNamespace(@Nonnull URI namespace)
namespace - Namespace to map@Nullable protected abstract QName createQName(@Nonnull String prefix, @Nonnull String localName)
prefix - Prefix for namespacelocalName - local nameIllegalArgumentException - if the prefix cannot be resolvedprotected final StringBuilder appendQName(StringBuilder sb, QName qname)
Copyright © 2018 OpenDaylight. All rights reserved.