@Beta public abstract class NodeCodecContext<D extends TreeNode> extends Object implements BindingTreeNodeCodec<D>
Two core subtypes of codec context are available:
LeafNodeCodecContext
- Context for nodes, which does not contain
any nested YANG modeled substructures.TreeNodeCodecContext
- Context for nodes, which does contain
nested YANG modeled substructures. This context nodes contains context
for children nodes.Modifier and Type | Class and Description |
---|---|
protected static interface |
NodeCodecContext.CodecContextFactory
Immutable factory, which provides access to runtime context,
create leaf nodes and provides path argument codecs.
|
Constructor and Description |
---|
NodeCodecContext() |
Modifier and Type | Method and Description |
---|---|
protected void |
addYangPathArgument(TreeArgument arg,
List<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> builder)
Serializes supplied Binding Path Argument
and adds all necessary YANG instance identifiers to supplied list.
|
protected abstract Object |
deserializeObject(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode) |
abstract org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument |
getDomPathArgument()
Returns Yang Instance Identifier Path Argument of current node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bindingPathArgumentChild, createCachingCodec, deserializePathArgument, getBindingClass, getSchema, possibleStreamChild, serializePathArgument, streamChild, writeAsNormalizedNode, yangPathArgumentChild
deserialize, serialize
public abstract org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument getDomPathArgument()
protected void addYangPathArgument(TreeArgument arg, List<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> builder)
arg
- Binding Path Argumentbuilder
- DOM Path argument.protected abstract Object deserializeObject(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode)
Copyright © 2019 OpenDaylight. All rights reserved.