Class EnumStringCodec
java.lang.Object
org.opendaylight.yangtools.yang.data.api.codec.AbstractIllegalArgumentCodec<String,String>
org.opendaylight.yangtools.yang.data.impl.codec.AbstractDataStringCodec<String>
org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec<String,EnumTypeDefinition>
org.opendaylight.yangtools.yang.data.impl.codec.EnumStringCodec
- All Implemented Interfaces:
EnumCodec<String>
,IllegalArgumentCodec<String,
,String> DataStringCodec<String>
@Beta
public final class EnumStringCodec
extends TypeDefinitionAwareCodec<String,EnumTypeDefinition>
implements EnumCodec<String>
Do not use this class outside of yangtools, its presence does not fall into the API stability contract.
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
deserializeImpl
(String product) static EnumStringCodec
from
(EnumTypeDefinition typeDef) protected String
serializeImpl
(String input) Methods inherited from class org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec
from, fromType, getInputClass, typeDefinition
Methods inherited from class org.opendaylight.yangtools.yang.data.api.codec.AbstractIllegalArgumentCodec
deserialize, serialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.yang.data.api.codec.IllegalArgumentCodec
deserialize, serialize
-
Method Details
-
from
-
deserializeImpl
- Specified by:
deserializeImpl
in classAbstractIllegalArgumentCodec<String,
String>
-
serializeImpl
- Specified by:
serializeImpl
in classAbstractIllegalArgumentCodec<String,
String>
-