Class ImmutableNodes

java.lang.Object
org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes

@Deprecated(since="12.0.0", forRemoval=true) public final class ImmutableNodes extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use ImmutableNodes instead.
Utility methods producing immutable implementations of various NormalizedNodes.
  • Method Details

    • mapNodeBuilder

      public static @NonNull SystemMapNode.Builder mapNodeBuilder()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • mapNodeBuilder

      public static @NonNull SystemMapNode.Builder mapNodeBuilder(QName name)
      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

      public static @NonNull SystemMapNode mapNode(QName name)
      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

      public static @NonNull SystemMapNode mapNode(YangInstanceIdentifier.NodeIdentifier name)
      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

      public 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.
      Parameters:
      name - QName which will be used as node identifier
      Returns:
      An ordered Map node
    • orderedMapNode

      public static @NonNull UserMapNode orderedMapNode(YangInstanceIdentifier.NodeIdentifier name)
      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 node
      value - Value of leaf node
      Returns:
      Leaf node with supplied identifier and value
    • leafNode

      public static <T> @NonNull LeafNode<T> leafNode(QName 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 - QName which will be used as node identifier
      value - 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

      public static @NonNull MapEntryNode.Builder mapEntryBuilder()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • mapEntry

      public static @NonNull MapEntryNode mapEntry(QName nodeName, QName keyName, Object keyValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • containerNode

      public 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.
      Parameters:
      name - QName which will be used as node identifier
      Returns:
      A container node
    • containerNode

      public static @NonNull ContainerNode containerNode(YangInstanceIdentifier.NodeIdentifier name)
      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

      public static @NonNull ChoiceNode choiceNode(QName name)
      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

      public static @NonNull ChoiceNode choiceNode(YangInstanceIdentifier.NodeIdentifier name)
      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

      public static @NonNull UnkeyedListNode listNode(QName name)
      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

      public static @NonNull UnkeyedListNode listNode(YangInstanceIdentifier.NodeIdentifier name)
      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 serialization
      id - instance identifier to convert to node structure starting from root
      Returns:
      serialized normalized node for provided instance Id
      Throws:
      NullPointerException - if any argument is null
      IllegalArgumentException - if the identifier cannot be converted