Class ImmutableNodes
java.lang.Object
org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes
Deprecated, for removal: This API element is subject to removal in a future version.
Utility methods producing immutable implementations of various
NormalizedNode
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ChoiceNode
choiceNode
(QName name) Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable choice node.static @NonNull ChoiceNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable choice node.static @NonNull ContainerNode
containerNode
(QName name) Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable container node.static @NonNull ContainerNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable container node.static @NonNull NormalizedNode
Deprecated, for removal: This API element is subject to removal in a future version.Convert YangInstanceIdentifier into a normalized node structure.static <T> @NonNull LeafNode<T>
Deprecated, for removal: This API element is subject to removal in a future version.Construct immutable leaf node.static <T> @NonNull LeafNode<T>
leafNode
(YangInstanceIdentifier.NodeIdentifier name, T value) Deprecated, for removal: This API element is subject to removal in a future version.Construct immutable leaf node.static @NonNull UnkeyedListNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable list node.static @NonNull UnkeyedListNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable list node.static @NonNull MapEntryNode
Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull MapEntryNode.Builder
Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull MapEntryNode.Builder
mapEntryBuilder
(QName nodeName, QName keyName, Object keyValue) Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull SystemMapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable map node.static @NonNull SystemMapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable map node.static @NonNull SystemMapNode.Builder
Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull SystemMapNode.Builder
mapNodeBuilder
(QName name) Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull SystemMapNode.Builder
Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull UserMapNode
orderedMapNode
(QName name) Deprecated, for removal: This API element is subject to removal in a future version.Create immutable ordered map node.static @NonNull UserMapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create immutable ordered map node.
-
Method Details
-
mapNodeBuilder
Deprecated, for removal: This API element is subject to removal in a future version. -
mapNodeBuilder
Deprecated, for removal: This API element is subject to removal in a future version. -
mapNodeBuilder
public static @NonNull SystemMapNode.Builder mapNodeBuilder(YangInstanceIdentifier.NodeIdentifier name) Deprecated, for removal: This API element is subject to removal in a future version. -
mapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable map node.- Parameters:
name
- QName which will be used as node identifier- Returns:
- An unordered Map node
-
mapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable map node.- Parameters:
name
- QName which will be used as node identifier- Returns:
- An unordered Map node
-
orderedMapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create immutable ordered map node.- Parameters:
name
- QName which will be used as node identifier- Returns:
- An ordered Map node
-
orderedMapNode
Deprecated, for removal: This API element is subject to removal in a future version.Create immutable ordered map node.- Parameters:
name
- Node identifier- Returns:
- An ordered Map node
-
leafNode
public static <T> @NonNull LeafNode<T> leafNode(YangInstanceIdentifier.NodeIdentifier name, T value) Deprecated, for removal: This API element is subject to removal in a future version.Construct immutable leaf node.- Type Parameters:
T
- Type of leaf node value- Parameters:
name
- Identifier of leaf nodevalue
- Value of leaf node- Returns:
- Leaf node with supplied identifier and value
-
leafNode
Deprecated, for removal: This API element is subject to removal in a future version.Construct immutable leaf node.- Type Parameters:
T
- Type of leaf node value- Parameters:
name
- QName which will be used as node identifiervalue
- Value of leaf node.- Returns:
- Leaf node with supplied identifier and value
-
mapEntryBuilder
public static @NonNull MapEntryNode.Builder mapEntryBuilder(QName nodeName, QName keyName, Object keyValue) Deprecated, for removal: This API element is subject to removal in a future version. -
mapEntryBuilder
Deprecated, for removal: This API element is subject to removal in a future version. -
mapEntry
Deprecated, for removal: This API element is subject to removal in a future version. -
containerNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable container node.- Parameters:
name
- QName which will be used as node identifier- Returns:
- A container node
-
containerNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable container node.- Parameters:
name
- Node identifier- Returns:
- A container node
-
choiceNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable choice node.- Parameters:
name
- QName which will be used as node identifier- Returns:
- A choice node
-
choiceNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable choice node.- Parameters:
name
- Node identifier- Returns:
- A choice node
-
listNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable list node.- Parameters:
name
- QName which will be used as node identifier- Returns:
- An unkeyed list node
-
listNode
Deprecated, for removal: This API element is subject to removal in a future version.Create an immutable list node.- Parameters:
name
- Node identifier- Returns:
- An unkeyed list node
-
fromInstanceId
public static @NonNull NormalizedNode fromInstanceId(EffectiveModelContext ctx, YangInstanceIdentifier id) Deprecated, for removal: This API element is subject to removal in a future version.Convert YangInstanceIdentifier into a normalized node structure.- Parameters:
ctx
- schema context to used during serializationid
- instance identifier to convert to node structure starting from root- Returns:
- serialized normalized node for provided instance Id
- Throws:
NullPointerException
- if any argument is nullIllegalArgumentException
- if the identifier cannot be converted
-
ImmutableNodes
instead.