Class AbstractContext
java.lang.Object
org.opendaylight.yangtools.yang.data.util.context.AbstractContext
- All Implemented Interfaces:
DataSchemaContext
- Direct Known Subclasses:
AbstractCompositeContext
,AbstractPathMixinContext
,AbstractValueContext
public abstract sealed class AbstractContext
extends Object
implements DataSchemaContext
permits AbstractPathMixinContext, AbstractCompositeContext, AbstractValueContext (not exhaustive)
Schema derived data providing necessary information for mapping between
NormalizedNode
and serialization format defined in RFC6020,
since the mapping is not one-to-one.-
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 DataSchemaNode
static @NonNull AbstractContext
of
(@NonNull DataSchemaNode schema) pathStep()
Return the fixedYangInstanceIdentifier
step, if available.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
getPathStep
-
Method Details
-
dataSchemaNode
- Specified by:
dataSchemaNode
in interfaceDataSchemaContext
-
pathStep
Description copied from interface:DataSchemaContext
Return the fixedYangInstanceIdentifier
step, if available. This method returnsnull
for contexts likeMapEntryNode
andLeafSetEntryNode
, where the step depends on the actual node value.- Specified by:
pathStep
in interfaceDataSchemaContext
- Returns:
- A
YangInstanceIdentifier.NodeIdentifier
, ornull
-
of
-