D
- - type of tree node@Beta public final class CaseNodeCodecContext<D extends TreeNode> extends TreeNodeCodecContext<D,org.opendaylight.yangtools.yang.model.api.CaseSchemaNode>
NodeCodecContext.CodecContextFactory
Constructor and Description |
---|
CaseNodeCodecContext(DataContainerCodecPrototype<org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> prototype)
Prepare context for choice case node from prototype.
|
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.
|
D |
deserialize(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode)
Converts from Normalized Node to Binding representation of data.
|
protected Object |
deserializeObject(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode) |
TreeArgument |
deserializePathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument arg)
Deserializes path argument for current node.
|
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument |
serializePathArgument(TreeArgument arg)
Serializes path argument for current node.
|
bindingPathArgumentChild, createBindingProxy, getAllAugmentationsFrom, getAnyxmlChild, getBindingChildValue, getHashCodeAndEqualsMethods, getLeafChild, possibleStreamChild, streamChild, yangPathArgumentChild
bindingArg, childNonNull, childNonNull, childNonNull, createCachingCodec, createWriter, eventStreamSerializer, factory, getBindingClass, getBindingPathArgument, getDomPathArgument, getSchema, namespace, serialize, toString, writeAsNormalizedNode
public CaseNodeCodecContext(DataContainerCodecPrototype<org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> prototype)
prototype
- - codec prototype of choice case nodeprotected void addYangPathArgument(TreeArgument arg, List<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> builder)
NodeCodecContext
addYangPathArgument
in class NodeCodecContext<D extends TreeNode>
arg
- Binding Path Argumentbuilder
- DOM Path argument.@Nonnull public D deserialize(@Nonnull org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode)
BindingNormalizedNodeCodec
normalizedNode
- - Normalized Node representation of dataprotected Object deserializeObject(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode)
deserializeObject
in class NodeCodecContext<D extends TreeNode>
public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument serializePathArgument(TreeArgument arg)
BindingTreeNodeCodec
serializePathArgument
in interface BindingTreeNodeCodec<D extends TreeNode>
serializePathArgument
in class TreeNodeCodecContext<D extends TreeNode,org.opendaylight.yangtools.yang.model.api.CaseSchemaNode>
arg
- - Binding Path Argument, may be null if Binding Instance
Identifier does not have representation for current node (e.g.
choice or case)public TreeArgument deserializePathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument arg)
BindingTreeNodeCodec
deserializePathArgument
in interface BindingTreeNodeCodec<D extends TreeNode>
deserializePathArgument
in class TreeNodeCodecContext<D extends TreeNode,org.opendaylight.yangtools.yang.model.api.CaseSchemaNode>
arg
- - Yang Path Argument, may be null if Yang Instance Identifier
does not have representation for current node (e.g. case)Copyright © 2019 OpenDaylight. All rights reserved.