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>

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

    Modifier and Type
    Method
    Description
    Returns the body of this node.

    Methods inherited from interface org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode

    contract, getIdentifier, 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 specifies Object, this method's return value has further semantics. The returned object must be a well-published contract, such as String, Collection<NormalizedNode> or DOMSource.

      Implementation note Invocation of body() must provide the same value as value in NormalizedNode.name(). true == this.name().getValue().equals(this.body()).

      Specified by:
      body in interface NormalizedData
      Returns:
      Returned value of this node.