Package org.pentaho.reporting.engine.classic.core.filter

Examples of org.pentaho.reporting.engine.classic.core.filter.RawDataSource


  public Object getRawValue(final ExpressionRuntime runtime, final Element element)
  {
    final DataSource source = element.getDataSource();
    if (source instanceof RawDataSource)
    {
      RawDataSource rds = (RawDataSource) source;
      return rds.getRawValue(runtime, element);
    }
    return null;
  }
View Full Code Here


                                             FormatSpecification formatSpecification)
  {
    final DataSource source = element.getDataSource();
    if (source instanceof RawDataSource)
    {
      RawDataSource rds = (RawDataSource) source;
      return rds.getFormatString(runtime, element, formatSpecification);
    }

    if (formatSpecification == null)
    {
      formatSpecification = new FormatSpecification();
View Full Code Here

            if (Boolean.TRUE.equals(attribute) == false)
            {
              continue;
            }
          }
          final RawDataSource rds = (RawDataSource) source;
          formatSpecification = rds.getFormatString(getRuntime(), e, formatSpecification);
          if (formatSpecification.getType() == FormatSpecification.TYPE_DATE_FORMAT ||
              formatSpecification.getType() == FormatSpecification.TYPE_DECIMAL_FORMAT)
          {
            style.setStyleProperty
                (ElementStyleKeys.EXCEL_DATA_FORMAT_STRING, formatSpecification.getFormatString());
View Full Code Here

    {
      final DataSource dataSource = element.getElementType();
      final Object rawValue;
      if (dataSource instanceof RawDataSource)
      {
        final RawDataSource rds = (RawDataSource) dataSource;
        rawValue = rds.getRawValue(runtime, element);
      }
      else
      {
        rawValue = null;
      }
View Full Code Here

        if (Boolean.TRUE.equals(attribute) == false)
        {
          return false;
        }
      }
      final RawDataSource rds = (RawDataSource) source;
      if (formatSpecification != null)
      {
        formatSpecification.redefine(FormatSpecification.TYPE_UNDEFINED, null);
      }
      formatSpecification = rds.getFormatString(getRuntime(), e, formatSpecification);
      if (formatSpecification != null)
      {
        if (formatSpecification.getType() == FormatSpecification.TYPE_DATE_FORMAT ||
            formatSpecification.getType() == FormatSpecification.TYPE_DECIMAL_FORMAT)
        {
View Full Code Here

    }
    final Element e = (Element) element;
    final DataSource source = e.getDataSource();
    if (source instanceof RawDataSource)
    {
      final RawDataSource rds = (RawDataSource) source;
      return rds.getRawValue(runtime, element);
    }
    return e.getDataSource().getValue(runtime, element);
  }
View Full Code Here

    }
    final Element e = (Element) element;
    final DataSource source = e.getDataSource();
    if (source instanceof RawDataSource)
    {
      final RawDataSource rds = (RawDataSource) source;
      return rds.getFormatString(runtime, element, formatSpecification);
    }

    if (formatSpecification == null)
    {
      formatSpecification = new FormatSpecification();
View Full Code Here

    final DataSource dataSource = element.getElementType();
    final Object rawValue;
    if (dataSource instanceof RawDataSource)
    {
      final RawDataSource rds = (RawDataSource) dataSource;
      rawValue = rds.getRawValue(runtime, element);
    }
    else
    {
      rawValue = null;
    }
View Full Code Here

      textBuffer.append(value);

      final DataSource dataSource = element.getElementType();
      if (dataSource instanceof RawDataSource)
      {
        final RawDataSource rds = (RawDataSource) dataSource;
        rawResult = rds.getRawValue(runtime, element);
      }
      else
      {
        rawResult = null;
      }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.filter.RawDataSource

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.