T
- Path Argument typepublic abstract class DataSchemaContextNode<T extends YangInstanceIdentifier.PathArgument> extends AbstractIdentifiable<T>
NormalizedNode
and serialization format defined in RFC6020,
since the mapping is not one-to-one.Modifier | Constructor and Description |
---|---|
protected |
DataSchemaContextNode(T identifier,
SchemaNode schema) |
Modifier and Type | Method and Description |
---|---|
static YangInstanceIdentifier.AugmentationIdentifier |
augmentationIdentifierFrom(AugmentationSchemaNode schema)
Create AugmentationIdentifier from an AugmentationSchemaNode.
|
@NonNull Optional<DataSchemaContextNode<?>> |
findChild(@NonNull YangInstanceIdentifier path)
Find a child node as identified by a
YangInstanceIdentifier relative to this node. |
static DataSchemaContextNode<?> |
from(SchemaContext ctx) |
static @Nullable DataSchemaContextNode<?> |
fromDataSchemaNode(DataSchemaNode potential) |
abstract @Nullable DataSchemaContextNode<?> |
getChild(QName child) |
abstract @Nullable DataSchemaContextNode<?> |
getChild(YangInstanceIdentifier.PathArgument child)
Find a child node identifier by its
YangInstanceIdentifier.PathArgument . |
@Nullable DataSchemaNode |
getDataSchemaNode() |
protected Set<QName> |
getQNameIdentifiers() |
boolean |
isKeyedEntry() |
abstract boolean |
isLeaf() |
boolean |
isMixin() |
addToStringAttributes, getIdentifier, toString
protected DataSchemaContextNode(T identifier, SchemaNode schema)
public boolean isMixin()
public boolean isKeyedEntry()
public abstract boolean isLeaf()
public abstract @Nullable DataSchemaContextNode<?> getChild(YangInstanceIdentifier.PathArgument child)
YangInstanceIdentifier.PathArgument
.child
- Child path argumentpublic abstract @Nullable DataSchemaContextNode<?> getChild(QName child)
public @Nullable DataSchemaNode getDataSchemaNode()
public final @NonNull Optional<DataSchemaContextNode<?>> findChild(@NonNull YangInstanceIdentifier path)
YangInstanceIdentifier
relative to this node.path
- Path towards the child nodeNullPointerException
- if path
is nullpublic static YangInstanceIdentifier.AugmentationIdentifier augmentationIdentifierFrom(AugmentationSchemaNode schema)
schema
- Augmentation schemaNullPointerException
- if schema
is nullpublic static @Nullable DataSchemaContextNode<?> fromDataSchemaNode(DataSchemaNode potential)
public static DataSchemaContextNode<?> from(SchemaContext ctx)
Copyright © 2020 OpenDaylight. All rights reserved.