Interface ValueExtractor.ValueReceiver

  • Enclosing interface:
    ValueExtractor<T>

    public static interface ValueExtractor.ValueReceiver
    Provides a set of methods receiving value extracted by the ValueExtractor.

    The value has to be passed to the method corresponding best to the type of the original value.

    Since:
    2.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void indexedValue​(java.lang.String nodeName, int i, java.lang.Object object)
      Receives the value extracted from an indexed object (e.g.
      void iterableValue​(java.lang.String nodeName, java.lang.Object object)
      Receives the value extracted from an iterable object that is not indexed (e.g.
      void keyedValue​(java.lang.String nodeName, java.lang.Object key, java.lang.Object object)
      Receives the value extracted from a keyed object (e.g.
      void value​(java.lang.String nodeName, java.lang.Object object)
      Receives the value extracted from an object.
    • Method Detail

      • value

        void value​(java.lang.String nodeName,
                   java.lang.Object object)
        Receives the value extracted from an object.
        Parameters:
        nodeName - the name of the node representing the container element. If not null, the name will be used when adding a container element node to the Path
        object - the value to validate
      • iterableValue

        void iterableValue​(java.lang.String nodeName,
                           java.lang.Object object)
        Receives the value extracted from an iterable object that is not indexed (e.g. a Iterable, Set or a Map).
        Parameters:
        nodeName - the name of the node representing the container element. If not null, the name will be used when adding a container element node to the Path
        object - the value to validate
      • indexedValue

        void indexedValue​(java.lang.String nodeName,
                          int i,
                          java.lang.Object object)
        Receives the value extracted from an indexed object (e.g. a List).
        Parameters:
        nodeName - the name of the node representing the container element. If not null, the name will be used when adding a container element node to the Path
        i - the index of the value in the original object
        object - the value to validate
      • keyedValue

        void keyedValue​(java.lang.String nodeName,
                        java.lang.Object key,
                        java.lang.Object object)
        Receives the value extracted from a keyed object (e.g. a Map).
        Parameters:
        nodeName - the name of the node representing the container element. If not null, the name will be used when adding a container element node to the Path
        key - the key of the value in the original object
        object - the value to validate