Interface ValueNode<V>
- Type Parameters:
V
- Value of node, which needs to be a well-published simple value type.
- All Superinterfaces:
NormalizedData
,NormalizedNode
,PrettyTreeAware
- All Known Subinterfaces:
LeafNode<T>
,LeafSetEntryNode<T>
- All Known Implementing Classes:
AbstractLeafNode
,AbstractLeafSetEntryNode
,ImmutableLeafNode
,ImmutableLeafSetEntryNode
public sealed interface ValueNode<V>
extends NormalizedNode
permits LeafNode<T>, LeafSetEntryNode<T> (not exhaustive)
Interface holding the common trait of
LeafSetEntryNode
and LeafNode
, which both hold a value.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode
NormalizedNode.Builder, NormalizedNode.BuilderFactory
-
Method Summary
Methods inherited from interface org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode
contract, name
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.name()
.true == this.name().getValue().equals(this.body())
.- Specified by:
body
in interfaceNormalizedData
- Returns:
- Returned value of this node.
-