public final class ImmutableNodes extends Object
public static CollectionNodeBuilder<MapEntryNode,MapNode> mapNodeBuilder()
public static CollectionNodeBuilder<MapEntryNode,MapNode> mapNodeBuilder(QName name)
public static <T> LeafNode<T> leafNode(YangInstanceIdentifier.NodeIdentifier name, T value)
T
- Type of leaf node valuename
- Identifier of leaf nodevalue
- Value of leaf nodepublic static <T> LeafNode<T> leafNode(QName name, T value)
T
- Type of leaf node valuename
- QName which will be used as node identifiervalue
- Value of leaf node.public static DataContainerNodeBuilder<YangInstanceIdentifier.NodeIdentifierWithPredicates,MapEntryNode> mapEntryBuilder(QName nodeName, QName keyName, Object keyValue)
public static MapEntryNode mapEntry(QName nodeName, QName keyName, Object keyValue)
public static DataContainerNodeBuilder<YangInstanceIdentifier.NodeIdentifierWithPredicates,MapEntryNode> mapEntryBuilder()
public static ContainerNode containerNode(QName name)
public static ChoiceNode choiceNode(QName name)
public static NormalizedNode<?,?> fromInstanceId(SchemaContext ctx, YangInstanceIdentifier id)
ctx
- schema context to used during serializationid
- instance identifier to convert to node structure starting from rootpublic static NormalizedNode<?,?> fromInstanceId(SchemaContext ctx, YangInstanceIdentifier id, NormalizedNode<?,?> deepestElement)
ctx
- schema context to used during serializationid
- instance identifier to convert to node structure starting from rootdeepestElement
- pre-built deepest child that will be inserted at the last path argument of provided instance Idpublic static NormalizedNode<?,?> fromInstanceId(SchemaContext ctx, YangInstanceIdentifier id, com.google.common.base.Optional<NormalizedNode<?,?>> deepestElement, com.google.common.base.Optional<Map.Entry<QName,ModifyAction>> operation)
ctx
- schema context to used during serializationid
- instance identifier to convert to node structure starting from rootdeepestElement
- pre-built deepest child that will be inserted at the last path argument of provided instance Idoperation
- modify operation attribute to be added to the deepest child. QName is the operation attribute key and ModifyAction is the value.Copyright © 2017 OpenDaylight. All rights reserved.