Package org.pentaho.reporting.libraries.formula

Examples of org.pentaho.reporting.libraries.formula.Messages


  }

  public static String getParameterType(final Type parameterType,
                                        final Locale locale)
  {
    final Messages messages = new Messages(locale);
    if (parameterType.isFlagSet(Type.DATE_TYPE))
    {
      return messages.getString("Type.Date");
    }
    else if (parameterType.isFlagSet(Type.LOGICAL_TYPE))
    {
      return messages.getString("Type.Logical");
    }
    if (parameterType.isFlagSet(Type.DATETIME_TYPE))
    {
      return messages.getString("Type.Datetime");
    }
    if (parameterType.isFlagSet(Type.NUMERIC_TYPE))
    {
      return messages.getString("Type.Number");
    }
    if (parameterType.isFlagSet(Type.NUMERIC_SEQUENCE_TYPE))
    {
      return messages.getString("Type.NumberSequence");
    }
    if (parameterType.isFlagSet(Type.NUMERIC_UNIT))
    {
      return messages.getString("Type.Unit");
    }
    else if (parameterType.isFlagSet(Type.TEXT_TYPE))
    {
      return messages.getString("Type.Text");
    }
    else if (parameterType.isFlagSet(Type.ANY_TYPE))
    {
      return messages.getString("Type.AnyType");
    }
    return messages.getString("Type.Invalid");
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.formula.Messages

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.