Class ParameterBasedValueResolver

  • All Implemented Interfaces:
    ValueResolver

    public class ParameterBasedValueResolver
    extends java.lang.Object
    implements ValueResolver
    A value resolved that is based on parameter resolver
    Author:
    Yegor.Yarko Date: 25.08.2008
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<ProcessingResult> doResolve​(java.util.List<java.lang.String> toResolve, ParametersProvider dictionary)  
      ProcessingResult resolve​(java.lang.String value)  
      java.util.Map<java.lang.String,​java.lang.String> resolve​(java.util.Map<java.lang.String,​java.lang.String> unresolved)
      Resolves values of the map at once.
      java.util.Map<java.lang.String,​ProcessingResult> resolveWithDetails​(java.util.Map<java.lang.String,​java.lang.String> unresolved)
      Resolves values of the map, returns result with resolving details.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParameterBasedValueResolver

        public ParameterBasedValueResolver​(@NotNull
                                           ParameterResolver resolver,
                                           @NotNull
                                           ParametersProvider dictionary)
        Creates a value resolver that is based on resolver and used dictionary during value resolution
        Parameters:
        resolver - a resolver to use for value resolution
        dictionary - a dictionary to use for value resolution
    • Method Detail

      • resolve

        @NotNull
        public ProcessingResult resolve​(@NotNull
                                        java.lang.String value)
        Specified by:
        resolve in interface ValueResolver
        Parameters:
        value - value to be resolved
        Returns:
        the processing result
      • resolve

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> resolve​(@NotNull
                                                                              java.util.Map<java.lang.String,​java.lang.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 java.util.Map<java.lang.String,​ProcessingResult> resolveWithDetails​(@NotNull
                                                                                         java.util.Map<java.lang.String,​java.lang.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
      • doResolve

        @NotNull
        protected java.util.List<ProcessingResult> doResolve​(@NotNull
                                                             java.util.List<java.lang.String> toResolve,
                                                             @NotNull
                                                             ParametersProvider dictionary)