Interface DistinctNodeContainer<K extends YangInstanceIdentifier.PathArgument,​V extends NormalizedNode>

    • Method Detail

      • body

        Collection<@NonNull 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.

        Returns iteration of all child nodes. Order of returned child nodes may be defined by subinterfaces.

        All nodes returned in this iterable, MUST also be accessible via childByArg(PathArgument) using their associated identifier.

        Specified by:
        body in interface NormalizedNode
        Specified by:
        body in interface NormalizedNodeContainer<K extends YangInstanceIdentifier.PathArgument>
        Returns:
        Iteration of all child nodes
      • childByArg

        @Nullable V childByArg​(K key)
        Returns a child node identified by provided key.
        Parameters:
        key - Path argument identifying child node
        Returns:
        Matching child node, or null if no matching child exists
        Throws:
        NullPointerException - if key is null
      • findChildByArg

        default Optional<V> findChildByArg​(K key)
        Attempts to find a child node identified by provided key.
        Parameters:
        key - Path argument identifying child node
        Returns:
        Optional with child node if child exists. Optional.empty() if child does not exist
        Throws:
        NullPointerException - if key is null
      • getChildByArg

        default @NonNull V getChildByArg​(K key)
        Returns a child node identified by provided key, asserting its presence.
        Parameters:
        key - Path argument identifying child node
        Returns:
        Matching child node
        Throws:
        NullPointerException - if key is null
        VerifyException - if the child does not exist