@Beta public abstract class TreeNodeCodecContext<D extends TreeNode,T extends org.opendaylight.yangtools.yang.model.api.DataNodeContainer> extends DataContainerCodecContext<D,T>
NodeCodecContext.CodecContextFactory
Modifier | Constructor and Description |
---|---|
protected |
TreeNodeCodecContext(DataContainerCodecPrototype<T> prototype) |
Modifier and Type | Method and Description |
---|---|
DataContainerCodecContext<?,?> |
bindingPathArgumentChild(TreeArgument<?> arg,
List<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> builder)
Returns nested node context using supplied Binding Instance Identifier
and adds YANG instance identifiers to supplied list.
|
protected D |
createBindingProxy(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer<?,?,?> node) |
TreeArgument |
deserializePathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument arg)
Deserializes path argument for current node.
|
Map<Class<? extends Augmentation<?>>,Augmentation<?>> |
getAllAugmentationsFrom(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer<?,org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> data) |
AnyxmlNodeCodecContext<?> |
getAnyxmlChild(String name) |
Object |
getBindingChildValue(Method method,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer domData) |
Collection<Method> |
getHashCodeAndEqualsMethods() |
LeafNodeCodecContext<?> |
getLeafChild(String name) |
<C extends TreeNode> |
possibleStreamChild(Class<C> childClass)
Returns child context as if it was walked by
BindingStreamEventWriter . |
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument |
serializePathArgument(TreeArgument arg)
Serializes path argument for current node.
|
<C extends TreeNode> |
streamChild(Class<C> childClass)
Returns child context as if it was walked by
BindingStreamEventWriter . |
NodeCodecContext<D> |
yangPathArgumentChild(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument arg)
Returns nested node context using supplied YANG Instance Identifier.
|
bindingArg, childNonNull, childNonNull, childNonNull, createCachingCodec, createWriter, eventStreamSerializer, factory, getBindingClass, getBindingPathArgument, getDomPathArgument, getSchema, namespace, serialize, toString, writeAsNormalizedNode
addYangPathArgument, deserializeObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deserialize
protected TreeNodeCodecContext(DataContainerCodecPrototype<T> prototype)
@Nonnull public <C extends TreeNode> DataContainerCodecContext<C,?> streamChild(@Nonnull Class<C> childClass)
DataContainerCodecContext
BindingStreamEventWriter
. This means that to enter case, one
must issue getChild(ChoiceClass).getChild(CaseClass).streamChild
in interface BindingTreeNodeCodec<D extends TreeNode>
streamChild
in class DataContainerCodecContext<D extends TreeNode,T extends org.opendaylight.yangtools.yang.model.api.DataNodeContainer>
C
- data typechildClass
- input child classpublic <C extends TreeNode> Optional<DataContainerCodecContext<C,?>> possibleStreamChild(@Nonnull Class<C> childClass)
DataContainerCodecContext
BindingStreamEventWriter
. This means that to enter
case, one must issue getChild(ChoiceClass).getChild(CaseClass).possibleStreamChild
in interface BindingTreeNodeCodec<D extends TreeNode>
possibleStreamChild
in class DataContainerCodecContext<D extends TreeNode,T extends org.opendaylight.yangtools.yang.model.api.DataNodeContainer>
C
- data typechildClass
- input child class@Nonnull public DataContainerCodecContext<?,?> bindingPathArgumentChild(TreeArgument<?> arg, List<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> builder)
DataContainerCodecContext
bindingPathArgumentChild
in interface BindingTreeNodeCodec<D extends TreeNode>
bindingPathArgumentChild
in class DataContainerCodecContext<D extends TreeNode,T extends org.opendaylight.yangtools.yang.model.api.DataNodeContainer>
arg
- Binding Instance Identifier Argumentbuilder
- - mutable instance of list, which is appended by
YangInstanceIdentifiers as tree is walked, use null if such
side-product is not neededarg
does not represent valid child.@Nonnull public NodeCodecContext<D> yangPathArgumentChild(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument arg)
DataContainerCodecContext
yangPathArgumentChild
in interface BindingTreeNodeCodec<D extends TreeNode>
yangPathArgumentChild
in class DataContainerCodecContext<D extends TreeNode,T extends org.opendaylight.yangtools.yang.model.api.DataNodeContainer>
arg
- Yang Instance Identifier Argumentpublic final LeafNodeCodecContext<?> getLeafChild(String name)
public final AnyxmlNodeCodecContext<?> getAnyxmlChild(String name)
public Object getBindingChildValue(Method method, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer domData)
protected final D createBindingProxy(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer<?,?,?> node)
public Map<Class<? extends Augmentation<?>>,Augmentation<?>> getAllAugmentationsFrom(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodeContainer<?,org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> data)
public Collection<Method> getHashCodeAndEqualsMethods()
public TreeArgument deserializePathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument arg)
BindingTreeNodeCodec
arg
- - Yang Path Argument, may be null if Yang Instance Identifier
does not have representation for current node (e.g. case)public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument serializePathArgument(TreeArgument arg)
BindingTreeNodeCodec
arg
- - Binding Path Argument, may be null if Binding Instance
Identifier does not have representation for current node (e.g.
choice or case)Copyright © 2019 OpenDaylight. All rights reserved.