Class ConvertToNumberExpression

    • Constructor Detail

      • ConvertToNumberExpression

        public ConvertToNumberExpression()
        Default Constructor.
    • Method Detail

      • getField

        public String getField()
        Returns the name of the data-row column from where to read the string that should be parsed.
        Returns:
        the field name.
      • setField

        public void setField​(String field)
        Defines the name of the data-row column from where to read the string that should be parsed.
        Parameters:
        field - the name of the field.
      • getFormat

        public String getFormat()
        Returns the DecimalFormat pattern that is used for the parsing.
        Returns:
        the pattern string.
        See Also:
        DecimalFormat
      • setFormat

        public void setFormat​(String format)
        Defines the DecimalFormat pattern that is used for the parsing.
        Parameters:
        format - the pattern string.
        See Also:
        DecimalFormat
      • getLocale

        public Locale getLocale()
        Returns the locale that is used for the parsing.
        Returns:
        the locale.
      • setLocale

        public void setLocale​(Locale locale)
        Defines the locale that is used for the parsing.
        Parameters:
        locale - the locale.
      • getValue

        public Object getValue()
        Parses the value read from the column specified by the given field-name and tries to parse it into a Number using the given DecimalFormat-pattern.
        Returns:
        the value of the function.