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 interface ValueNode<V> extends NormalizedNode
Interface holding the common trait ofLeafSetEntryNode
andLeafNode
, which both hold a value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
body()
Returns the body of this node.-
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 Detail
-
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.
-
-