Package | Description |
---|---|
org.opendaylight.yangtools.transform | |
org.opendaylight.yangtools.yang.data.api.schema |
Definition of normalized YANG DOM Model
Normalized DOM Model brings more direct mapping between YANG Model, DOM
representation of data
|
org.opendaylight.yangtools.yang.data.api.schema.stream | |
org.opendaylight.yangtools.yang.data.api.schema.tree | |
org.opendaylight.yangtools.yang.data.api.schema.tree.spi | |
org.opendaylight.yangtools.yang.data.api.schema.xpath | |
org.opendaylight.yangtools.yang.data.impl.schema | |
org.opendaylight.yangtools.yang.data.impl.schema.builder.api | |
org.opendaylight.yangtools.yang.data.impl.schema.builder.impl | |
org.opendaylight.yangtools.yang.data.impl.schema.nodes |
Modifier and Type | Method and Description |
---|---|
static NormalizedNode<?,?> |
NormalizedNodeTransformations.replaceQNameModules(@NonNull NormalizedNode<?,?> original,
@NonNull Map<QNameModule,QNameModule> mapping)
Returns a
NormalizedNode with QNameModules replaced by supplied mapping. |
static NormalizedNode<?,?> |
NormalizedNodeTransformations.replaceQNames(@NonNull NormalizedNode<?,?> original,
@NonNull Map<QName,QName> mapping)
Returns a
NormalizedNode with QNames replaced by supplied mapping. |
static NormalizedNode<?,?> |
NormalizedNodeTransformations.transformQNames(NormalizedNode<?,?> original,
Function<QName,QName> mapping) |
Modifier and Type | Method and Description |
---|---|
static NormalizedNode<?,?> |
NormalizedNodeTransformations.replaceQNameModules(@NonNull NormalizedNode<?,?> original,
@NonNull Map<QNameModule,QNameModule> mapping)
Returns a
NormalizedNode with QNameModules replaced by supplied mapping. |
static NormalizedNode<?,?> |
NormalizedNodeTransformations.replaceQNames(@NonNull NormalizedNode<?,?> original,
@NonNull Map<QName,QName> mapping)
Returns a
NormalizedNode with QNames replaced by supplied mapping. |
static NormalizedNode<?,?> |
NormalizedNodeTransformations.transformQNames(NormalizedNode<?,?> original,
Function<QName,QName> mapping) |
Modifier and Type | Interface and Description |
---|---|
interface |
NormalizedNodeContainer<I extends YangInstanceIdentifier.PathArgument,K extends YangInstanceIdentifier.PathArgument,V extends NormalizedNode<? extends K,?>>
Node which is not leaf, but has child
NormalizedNode s as its valzue. |
interface |
OrderedNodeContainer<V extends NormalizedNode<?,?>>
Normalized Node container which preserves user supplied ordering
and allows addressing of child elements by position.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AnyXmlNode
AN normalizedNode.
|
interface |
AugmentationNode
Data instance of
augment associated with parent node. |
interface |
ChoiceNode
Node representing data instance of
choice . |
interface |
ContainerNode
Data subtree with cardinality 0..1 in the context of parent node.
|
interface |
DataContainerChild<K extends YangInstanceIdentifier.PathArgument,V>
Marker interface for direct children of
DataContainerNode . |
interface |
DataContainerNode<K extends YangInstanceIdentifier.PathArgument>
Abstract node which does not have value but contains valid
DataContainerChild nodes. |
interface |
LeafNode<T>
Leaf node with multiplicity 0..1.
|
interface |
LeafSetEntryNode<T>
Leaf node with multiplicity 0...n.
|
interface |
LeafSetNode<T>
Node representing set of simple leaf nodes.
|
interface |
MapEntryNode
Instance of Map entry, this node does not contains value, but child nodes.
|
interface |
MapNode
Containment node, which contains
MapEntryNode of the same type, which may
be quickly retrieved using key. |
interface |
NormalizedNodeContainer<I extends YangInstanceIdentifier.PathArgument,K extends YangInstanceIdentifier.PathArgument,V extends NormalizedNode<? extends K,?>>
Node which is not leaf, but has child
NormalizedNode s as its valzue. |
interface |
OrderedLeafSetNode<T>
Leaf set node which preserves user-supplied ordering.
|
interface |
OrderedMapNode
Map node which preserves user-supplied ordering.
|
interface |
OrderedNodeContainer<V extends NormalizedNode<?,?>>
Normalized Node container which preserves user supplied ordering
and allows addressing of child elements by position.
|
interface |
UnkeyedListEntryNode
List entry node, which does not have value, but child nodes.
|
interface |
UnkeyedListNode
Containment node, which contains
UnkeyedListEntryNode of the same type, which may
be quickly retrieved using key. |
interface |
ValueNode<K extends YangInstanceIdentifier.PathArgument,V>
Interface holding the common trait of
LeafSetEntryNode and LeafNode , which both hold a value. |
interface |
YangModeledAnyXmlNode
AnyXML node with schema of contained XML data.
|
Modifier and Type | Method and Description |
---|---|
static Map<NormalizedNode<?,?>,DuplicateEntry> |
NormalizedNodes.findDuplicates(NormalizedNode<?,?> node)
Find duplicate NormalizedNode instances within a subtree.
|
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(NormalizedNode<?,?> parent,
Iterable<YangInstanceIdentifier.PathArgument> relativePath) |
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(NormalizedNode<?,?> parent,
SchemaPath relativePath) |
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(NormalizedNode<?,?> parent,
YangInstanceIdentifier.PathArgument... relativePath) |
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(NormalizedNode<?,?> tree,
YangInstanceIdentifier path) |
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(YangInstanceIdentifier rootPath,
NormalizedNode<?,?> rootNode,
YangInstanceIdentifier childPath) |
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.getDirectChild(NormalizedNode<?,?> node,
YangInstanceIdentifier.PathArgument pathArg) |
static String |
NormalizedNodes.toStringTree(NormalizedNode<?,?> node)
Convert a data subtree under a node into a human-readable string format.
|
Modifier and Type | Method and Description |
---|---|
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(Optional<NormalizedNode<?,?>> parent,
Iterable<YangInstanceIdentifier.PathArgument> relativePath) |
static Optional<NormalizedNode<?,?>> |
NormalizedNodes.findNode(Optional<NormalizedNode<?,?>> parent,
YangInstanceIdentifier.PathArgument... relativePath) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
NormalizedNodeWriter.wasProcessAsSimpleNode(NormalizedNode<?,?> node) |
protected boolean |
NormalizedNodeWriter.wasProcessedAsCompositeNode(NormalizedNode<?,?> node) |
NormalizedNodeWriter |
NormalizedNodeWriter.write(NormalizedNode<?,?> node)
Iterate over the provided
NormalizedNode and emit write
events to the encapsulated NormalizedNodeStreamWriter . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
NormalizedNodeWriter.writeChildren(Iterable<? extends NormalizedNode<?,?>> children)
Emit events for all children and then emit an endNode() event.
|
Modifier and Type | Method and Description |
---|---|
Optional<NormalizedNode<?,?>> |
DataTreeCandidateNode.getDataAfter()
Return the after-image of data corresponding to the node.
|
Optional<NormalizedNode<?,?>> |
DataTreeCandidateNode.getDataBefore()
Return the before-image of data corresponding to the node.
|
Optional<NormalizedNode<?,?>> |
DataTreeSnapshotCursor.readNode(YangInstanceIdentifier.PathArgument child)
Read a particular node from the snapshot.
|
Optional<NormalizedNode<?,?>> |
DataTreeSnapshot.readNode(YangInstanceIdentifier path)
Read a particular node from the snapshot.
|
Optional<NormalizedNode<?,?>> |
SynchronizedDataTreeModification.readNode(YangInstanceIdentifier path) |
Modifier and Type | Method and Description |
---|---|
static @NonNull DataTreeCandidateNode |
DataTreeCandidateNodes.fromNormalizedNode(NormalizedNode<?,?> node)
Deprecated.
|
static @NonNull DataTreeCandidate |
DataTreeCandidates.fromNormalizedNode(YangInstanceIdentifier rootPath,
NormalizedNode<?,?> node) |
void |
DataTreeModificationCursor.merge(YangInstanceIdentifier.PathArgument child,
NormalizedNode<?,?> data)
Merge the specified data with the currently-present data
at specified path.
|
void |
DataTreeModification.merge(YangInstanceIdentifier path,
NormalizedNode<?,?> data)
Merge the specified data with the currently-present data
at specified path.
|
void |
SynchronizedDataTreeModification.merge(YangInstanceIdentifier path,
NormalizedNode<?,?> data) |
static @NonNull DataTreeCandidateNode |
DataTreeCandidateNodes.unmodified(NormalizedNode<?,?> node)
Return an unmodified
DataTreeCandidateNode identified by specified NormalizedNode . |
void |
DataTreeModificationCursor.write(YangInstanceIdentifier.PathArgument child,
NormalizedNode<?,?> data)
Replace the data at specified path with supplied data.
|
void |
DataTreeModification.write(YangInstanceIdentifier path,
NormalizedNode<?,?> data)
Replace the data at specified path with supplied data.
|
void |
SynchronizedDataTreeModification.write(YangInstanceIdentifier path,
NormalizedNode<?,?> data) |
static @NonNull DataTreeCandidateNode |
DataTreeCandidateNodes.written(NormalizedNode<?,?> node)
Return a
DataTreeCandidateNode pretending specified node was written without the data exsting beforehand. |
Modifier and Type | Method and Description |
---|---|
NormalizedNode<?,?> |
TreeNode.getData()
Get a read-only view of the underlying data.
|
Modifier and Type | Method and Description |
---|---|
static TreeNode |
TreeNodeFactory.createTreeNode(NormalizedNode<?,?> data,
Version version)
Create a new AbstractTreeNode from a data node.
|
void |
MutableTreeNode.setData(NormalizedNode<?,?> data)
Set the data component of the node.
|
Modifier and Type | Method and Description |
---|---|
NormalizedNode<?,?> |
XPathDocument.getRootNode()
Return the root node of this document.
|
Modifier and Type | Method and Description |
---|---|
@NonNull XPathDocument |
XPathSchemaContext.createDocument(@NonNull NormalizedNode<?,?> documentRoot)
Create a new document context.
|
Modifier and Type | Method and Description |
---|---|
NormalizedNode |
ImmutableNormalizedNodeStreamWriter.NormalizedNodeResultBuilder.build() |
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id)
Convert YangInstanceIdentifier into a normalized node structure.
|
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
NormalizedNode<?,?> deepestElement)
Convert YangInstanceIdentifier into a normalized node structure.
|
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
Optional<NormalizedNode<?,?>> deepestElement,
Optional<Map.Entry<QName,ModifyAction>> operation)
Convert YangInstanceIdentifier into a normalized node structure.
|
NormalizedNode<?,?> |
NormalizedNodeResult.getResult() |
NormalizedNode<?,?> |
ResultAlreadySetException.getResultData() |
Modifier and Type | Method and Description |
---|---|
NormalizedNodeContainerBuilder |
ImmutableNormalizedNodeStreamWriter.NormalizedNodeResultBuilder.addChild(NormalizedNode child) |
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
NormalizedNode<?,?> deepestElement)
Convert YangInstanceIdentifier into a normalized node structure.
|
SchemaOrderedNormalizedNodeWriter |
SchemaOrderedNormalizedNodeWriter.write(NormalizedNode<?,?> node) |
protected void |
ImmutableNormalizedNodeStreamWriter.writeChild(NormalizedNode<?,?> child) |
Modifier and Type | Method and Description |
---|---|
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
Optional<NormalizedNode<?,?>> deepestElement,
Optional<Map.Entry<QName,ModifyAction>> operation)
Convert YangInstanceIdentifier into a normalized node structure.
|
protected boolean |
SchemaOrderedNormalizedNodeWriter.writeChildren(Iterable<? extends NormalizedNode<?,?>> children) |
Constructor and Description |
---|
ResultAlreadySetException(String message,
NormalizedNode<?,?> resultData) |
ResultAlreadySetException(String message,
NormalizedNode<?,?> resultData,
Throwable cause) |
Modifier and Type | Class and Description |
---|---|
protected static class |
ImmutableContainerNodeBuilder.ImmutableContainerNode |
protected static class |
ImmutableLeafSetNodeBuilder.ImmutableLeafSetNode<T> |
protected static class |
ImmutableMapNodeBuilder.ImmutableMapNode |
protected static class |
ImmutableOrderedLeafSetNodeBuilder.ImmutableOrderedLeafSetNode<T> |
protected static class |
ImmutableOrderedMapNodeBuilder.ImmutableOrderedMapNode |
protected static class |
ImmutableUnkeyedListEntryNodeBuilder.ImmutableUnkeyedListEntryNode |
protected static class |
ImmutableUnkeyedListNodeBuilder.EmptyImmutableUnkeyedListNode |
protected static class |
ImmutableUnkeyedListNodeBuilder.ImmutableUnkeyedListNode |
Modifier and Type | Class and Description |
---|---|
class |
AbstractImmutableDataContainerAttrNode<K extends YangInstanceIdentifier.PathArgument> |
class |
AbstractImmutableDataContainerNode<K extends YangInstanceIdentifier.PathArgument> |
class |
AbstractImmutableNormalizedNode<K extends YangInstanceIdentifier.PathArgument,V> |
class |
AbstractImmutableNormalizedValueAttrNode<K extends YangInstanceIdentifier.PathArgument,V> |
class |
AbstractImmutableNormalizedValueNode<K extends YangInstanceIdentifier.PathArgument,V> |
Copyright © 2019 OpenDaylight. All rights reserved.