Interface ValueNode<V>
- Type Parameters:
V
- Value of node, which needs to be a well-published simple value type.
- All Superinterfaces:
Identifiable<YangInstanceIdentifier.PathArgument>
,NormalizedNode
,PrettyTreeAware
- All Known Subinterfaces:
LeafNode<T>
,LeafSetEntryNode<T>
public sealed interface ValueNode<V>
extends NormalizedNode
permits LeafNode<T>, LeafSetEntryNode<T>
Interface holding the common trait of
LeafSetEntryNode
and LeafNode
, which both hold a value.-
Method Summary
Methods inherited from interface org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode
contract, getIdentifier
Methods inherited from interface org.opendaylight.yangtools.concepts.PrettyTreeAware
prettyTree
-
Method Details
-
body
V body()Returns the body of this node. While the return value specifiesObject
, this method's return value has further semantics. The returned object must be a well-published contract, such asString
,Collection<NormalizedNode>
orDOMSource
.Implementation note Invocation of
body()
must provide the same value as value inNormalizedNode.getIdentifier()
.true == this.getIdentifier().getValue().equals(this.body())
.- Specified by:
body
in interfaceNormalizedNode
- Returns:
- Returned value of this node.
-