Interface RegistrationConfigurer<S,​T>

    • Method Detail

      • map

        <PS,​PT> ValueApplierConfigurer<PT,​T> map​(Function<S,​PS> contentProvider,
                                                             Class<PT> target)
        Defines a transformation for a child element.
        Parameters:
        contentProvider - Provider for how get this element from the source element
        target - The desired target type for these elements
        See Also:
        ValueApplierConfigurer
      • mapAll

        <PS,​PT> ValueApplierConfigurer<List<PT>,​T> mapAll​(Function<S,​? extends List<PS>> contentProvider,
                                                                      Class<PT> target)
        Defines a transformation for child elements.
        Parameters:
        contentProvider - Provider for how get these elements from the source element
        target - The desired target type for these elements
        See Also:
        ValueApplierConfigurer
      • setCreate

        void setCreate​(Function<S,​T> factory)
        (Required) Defines how the target object can be created from the given source.
      • setWhen

        void setWhen​(Predicate<S> guard)
        (Optional) Defines a predicate for this transformation. This makes sure that the transformation only happens, if the predicate defined here tests successfully.
      • setAfter

        void setAfter​(Consumer<T> callback)
        (Optional) Defines what to do after all child element transformations have finished.