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.
  • 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.