@Beta public final class ValueContext extends Object
Constructor and Description |
---|
ValueContext(Class<?> identifier,
LeafNodeCodecContext<?> leaf)
Prepare codec of leaf value and getter of binding leaf object for getting leaf.
|
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(Object obj)
Deserialize input object by prepared codec.
|
Object |
getAndSerialize(Object obj)
Get object via invoking getter with input and serializes it by prepared codec of leaf.
|
public ValueContext(Class<?> identifier, LeafNodeCodecContext<?> leaf)
identifier
- - binding classleaf
- - leaf codec contextCopyright © 2019 OpenDaylight. All rights reserved.