Class ImmutableNodes
java.lang.Object
org.opendaylight.yangtools.yang.data.spi.node.ImmutableNodes
Utilities for creating immutable implementations of various
NormalizedNode
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull NormalizedNode.BuilderFactory
static <T> @NonNull LeafNode<T>
Construct an immutableLeafNode
.static <T> @NonNull LeafNode<T>
leafNode
(YangInstanceIdentifier.NodeIdentifier name, T value) Construct an immutableLeafNode
.static <T> @NonNull LeafSetEntryNode<T>
leafSetEntry
(QName name, T value) static <T> @NonNull LeafSetEntryNode<T>
static <T> @NonNull AnydataNode.Builder<T>
newAnydataBuilder
(Class<T> objectModel) static <T> @NonNull AnyxmlNode.Builder<T,
AnyxmlNode<T>> newAnyxmlBuilder
(Class<T> objectModel) static @NonNull ChoiceNode.Builder
static @NonNull ContainerNode.Builder
static <T> @NonNull LeafNode.Builder<T>
static <T> @NonNull LeafSetEntryNode.Builder<T>
static @NonNull MapEntryNode.Builder
static <T> @NonNull SystemLeafSetNode.Builder<T>
static @NonNull SystemMapNode.Builder
static @NonNull UnkeyedListNode.Builder
static @NonNull UnkeyedListEntryNode.Builder
static <T> @NonNull UserLeafSetNode.Builder<T>
static @NonNull UserMapNode.Builder
-
Method Details
-
builderFactory
-
leafNode
public static <T> @NonNull LeafNode<T> leafNode(YangInstanceIdentifier.NodeIdentifier name, T value) Construct an immutableLeafNode
.- Type Parameters:
T
- Type of leaf node value- Parameters:
name
- Name of leaf nodevalue
- Value of leaf node- Returns:
- Leaf node with supplied name and value
- Throws:
NullPointerException
- if any argument isnull
-
leafNode
Construct an immutableLeafNode
.- Type Parameters:
T
- Type of leaf node value- Parameters:
name
- Name of leaf nodevalue
- Value of leaf node- Returns:
- Leaf node with supplied name and value
- Throws:
NullPointerException
- if any argument isnull
-
leafSetEntry
public static <T> @NonNull LeafSetEntryNode<T> leafSetEntry(YangInstanceIdentifier.NodeWithValue<T> name) -
leafSetEntry
-
newAnydataBuilder
-
newAnyxmlBuilder
public static <T> @NonNull AnyxmlNode.Builder<T,AnyxmlNode<T>> newAnyxmlBuilder(Class<T> objectModel) -
newChoiceBuilder
-
newContainerBuilder
-
newMapEntryBuilder
-
newSystemMapBuilder
-
newUserMapBuilder
-
newUnkeyedListEntryBuilder
-
newUnkeyedListBuilder
-
newLeafBuilder
-
newLeafSetEntryBuilder
-
newSystemLeafSetBuilder
-
newUserLeafSetBuilder
-