Class NumberBinder

java.lang.Object
nz.org.riskscape.engine.bind.BaseBinder
nz.org.riskscape.engine.bind.impl.NumberBinder
All Implemented Interfaces:
nz.org.riskscape.engine.bind.ParameterBinder, nz.org.riskscape.engine.Identified

public class NumberBinder extends nz.org.riskscape.engine.bind.BaseBinder
  • Field Details

    • PROBLEMS

      public static final NumberBinder.LocalProblems PROBLEMS
    • SUPPORTED_NUMBER_TYPES

      public static final List<Class> SUPPORTED_NUMBER_TYPES

      The types of Number that are acceptable as destination types.

      All of the number types in this list should have a constructor that accepts a single string argument.

  • Constructor Details

    • NumberBinder

      public NumberBinder()
  • Method Details

    • canBind

      public boolean canBind(Class<?> sourceType, Class<?> destinationType)
    • bindValue

      public <T> nz.org.riskscape.problem.ResultOrProblems<T> bindValue(nz.org.riskscape.engine.bind.BindingContext context, Object valueObj, Class<T> destinationType)
    • bindValue

      public <T> nz.org.riskscape.problem.ResultOrProblems<T> bindValue(Object valueObj, Class<T> destinationType)