Class AbstractCompositeContext
java.lang.Object
org.opendaylight.yangtools.yang.data.util.context.AbstractContext
org.opendaylight.yangtools.yang.data.util.context.AbstractCompositeContext
- All Implemented Interfaces:
DataSchemaContext
,DataSchemaContext.Composite
- Direct Known Subclasses:
ContainerContext
public abstract sealed class AbstractCompositeContext
extends AbstractContext
implements DataSchemaContext.Composite
permits ContainerContext (not exhaustive)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.data.util.DataSchemaContext
DataSchemaContext.Composite, DataSchemaContext.PathMixin, DataSchemaContext.SimpleValue
-
Method Summary
Modifier and TypeMethodDescriptionfinal AbstractContext
Find a child node identifier by itsYangInstanceIdentifier.PathArgument
.final AbstractContext
childByQName
(QName qname) Find a child node identifier by its {code data tree}QName
.final AbstractContext
enterChild
(SchemaInferenceStack stack, QName qname) Attempt to enter a childDataSchemaContext
towards theDataSchemaNode
child identified by specifieddata tree
QName
, adjusting providedstack
with inference steps corresponding to the transition to the returned node.final AbstractContext
Attempt to enter a childDataSchemaContext
towards theDataSchemaNode
child identified by specifiedYangInstanceIdentifier.PathArgument
, adjusting providedstack
with inference steps corresponding to the transition to the returned node.Methods inherited from class org.opendaylight.yangtools.yang.data.util.context.AbstractContext
dataSchemaNode, of, pathStep
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.util.DataSchemaContext
dataSchemaNode, getPathStep, pathStep
Methods inherited from interface org.opendaylight.yangtools.yang.data.util.DataSchemaContext.Composite
childByPath
-
Method Details
-
childByArg
Description copied from interface:DataSchemaContext.Composite
Find a child node identifier by itsYangInstanceIdentifier.PathArgument
.- Specified by:
childByArg
in interfaceDataSchemaContext.Composite
- Parameters:
arg
- Child path argument- Returns:
- A child node, or
null
if not found
-
childByQName
Description copied from interface:DataSchemaContext.Composite
Find a child node identifier by its {code data tree}QName
. This method returns intermediate nodes significant fromYangInstanceIdentifier
hierarchy ofYangInstanceIdentifier.PathArgument
s. If the returned node indicates is also aDataSchemaContext.PathMixin
, it represents aNormalizedNode
encapsulation which is not visible in RFC7950 XML encoding, and a further call to this method with the samechild
argument will provide the next step.- Specified by:
childByQName
in interfaceDataSchemaContext.Composite
- Parameters:
qname
- Child data tree QName- Returns:
- A child node, or
null
if not found
-
enterChild
Description copied from interface:DataSchemaContext.Composite
Attempt to enter a childDataSchemaContext
towards theDataSchemaNode
child identified by specifieddata tree
QName
, adjusting providedstack
with inference steps corresponding to the transition to the returned node. The stack is expected to be correctly pointing at this node's schema, otherwise the results of this method are undefined.- Specified by:
enterChild
in interfaceDataSchemaContext.Composite
- Parameters:
stack
-SchemaInferenceStack
to updateqname
- Child QName- Returns:
- A DataSchemaContextNode on the path towards the specified child
-
enterChild
public final AbstractContext enterChild(SchemaInferenceStack stack, YangInstanceIdentifier.PathArgument arg) Description copied from interface:DataSchemaContext.Composite
Attempt to enter a childDataSchemaContext
towards theDataSchemaNode
child identified by specifiedYangInstanceIdentifier.PathArgument
, adjusting providedstack
with inference steps corresponding to the transition to the returned node. The stack is expected to be correctly pointing at this node's schema, otherwise the results of this method are undefined.- Specified by:
enterChild
in interfaceDataSchemaContext.Composite
- Parameters:
stack
-SchemaInferenceStack
to updatearg
- Child path argument- Returns:
- A DataSchemaContextNode for the specified child
-