Class NumberParameter

java.lang.Object
org.frankframework.parameters.AbstractParameter
org.frankframework.parameters.NumberParameter
All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, IWithParameters, NameAware, IParameter, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class NumberParameter extends AbstractParameter
  • Constructor Details

    • NumberParameter

      public NumberParameter()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class AbstractParameter
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • getValue

      public Object getValue(ParameterValueList alreadyResolvedParameters, Message message, PipeLineSession session, boolean namespaceAware) throws ParameterException
      Description copied from class: AbstractParameter
      determines the raw value
      Specified by:
      getValue in interface IParameter
      Overrides:
      getValue in class AbstractParameter
      Throws:
      ParameterException
    • getValueAsType

      protected Number getValueAsType(@Nonnull Message request, boolean namespaceAware) throws ParameterException, IOException
      Description copied from class: AbstractParameter
      Converts raw data to configured parameter type
      Overrides:
      getValueAsType in class AbstractParameter
      Throws:
      ParameterException
      IOException
    • setDecimalSeparator

      public void setDecimalSeparator(String string)
      Separate the integer part from the fractional part of a number.
      Default value
      system default
    • setGroupingSeparator

      public void setGroupingSeparator(String string)
      In the United States, the comma is typically used for the grouping separator; however, several publication standards follow international standards in using either a space or a thin space character.
      Default value
      system default
    • setMaxInclusive

      public void setMaxInclusive(String string)
      Used in combination with type number; if set and the value of the parameter exceeds this maximum value, this maximum value is taken
    • setMinInclusive

      public void setMinInclusive(String string)
      Used in combination with type number; if set and the value of the parameter falls short of this minimum value, this minimum value is taken
    • getDecimalSeparator

      public String getDecimalSeparator()
    • getGroupingSeparator

      public String getGroupingSeparator()
    • getMinInclusiveString

      public String getMinInclusiveString()
    • getMaxInclusiveString

      public String getMaxInclusiveString()
    • getDecimalFormatSymbols

      public DecimalFormatSymbols getDecimalFormatSymbols()