Class GetOnlyValueResolver

  • All Implemented Interfaces:
    ValueResolver

    public class GetOnlyValueResolver
    extends Object
    implements ValueResolver
    Value resolver for standard %param%s which calls only get() on the parameters provider.
    • Constructor Detail

      • GetOnlyValueResolver

        public GetOnlyValueResolver​(@NotNull
                                    ParametersProvider provider)
    • Method Detail

      • setUseOriginalWhenNoValFullyResolved

        public void setUseOriginalWhenNoValFullyResolved​(boolean useOriginalWhenNoValFullyResolved)
        When set to true (default), %x% with parameters %x%=%y% will be resolved to %x%, this mimics behavior of ParametersInOutList. When set to false it will be resolved to %y%.
      • resolve

        @NotNull
        public Map<String,​String> resolve​(@NotNull
                                                Map<String,​String> unresolved)
        Description copied from interface: ValueResolver
        Resolves values of the map at once. Note: if map contains a parameter with null value then this parameter won't be returned in the resulting map.
        Specified by:
        resolve in interface ValueResolver
        Parameters:
        unresolved - map whose values to resolve
        Returns:
        map with resolved values
      • resolveWithDetails

        @NotNull
        public Map<String,​ProcessingResult> resolveWithDetails​(@NotNull
                                                                     Map<String,​String> unresolved)
        Description copied from interface: ValueResolver
        Resolves values of the map, returns result with resolving details. Note: if map contains a parameter with null value then this parameter won't be returned in the resulting map.
        Specified by:
        resolveWithDetails in interface ValueResolver
        Parameters:
        unresolved - map whose values to resolve
        Returns:
        map with resolved values