Package org.pentaho.reporting.libraries.base.util

Examples of org.pentaho.reporting.libraries.base.util.LinkedMap


   */
  public SubReport()
  {
    setElementType(new SubReportType());

    exportParameters = new LinkedMap();
    inputParameters = new LinkedMap();
  }
View Full Code Here


  public SubReport(InstanceID id)
  {
    super(id);
    setElementType(new SubReportType());

    exportParameters = new LinkedMap();
    inputParameters = new LinkedMap();

  }
View Full Code Here

  private LinkedMap knownStyleKeys;
  private boolean locked;

  private StyleKeyRegistry()
  {
    knownStyleKeys = new LinkedMap();
  }
View Full Code Here

  private AttributeMap<String> entryAttributes;
  private static final long serialVersionUID = 5116035029040370976L;

  public DefaultBundleManifest()
  {
    entries = new LinkedMap(10, 0.75f);
    entryAttributes = new AttributeMap<String>();
  }
View Full Code Here

    AbstractReportDefinition parent = getReport();
    final ParameterDataRow parameterRow;
    if (parent instanceof MasterReport)
    {
      final MasterReport mr = (MasterReport) parent;
      final LinkedMap values = computeParameterValueMap(mr);
      parameterRow = new ParameterDataRow((String[]) values.keys(new String[values.size()]), values.values());
    }
    else if (parent instanceof SubReport)
    {
      final SubReport sr = (SubReport) parent;
      final ParameterMapping[] inputMappings = sr.getInputMappings();
View Full Code Here

    return null;
  }

  protected LinkedMap computeParameterValueMap(final MasterReport report)
  {
    final LinkedMap retval = new LinkedMap();
    retval.put(MasterReport.REPORT_DATE_PROPERTY, new Date());

    final ReportParameterValues reportParameterValues = report.getParameterValues();
    final ParameterDefinitionEntry[] columnNames = report.getParameterDefinition().getParameterDefinitions();
    for (int i = 0; i < columnNames.length; i++)
    {
      final ParameterDefinitionEntry parameter = columnNames[i];
      final String columnName = parameter.getName();
      if (columnName == null)
      {
        continue;
      }
      retval.put(columnName, reportParameterValues.get(columnName));
    }
    return retval;
  }
View Full Code Here

  }

  @Deprecated
  public static LinkedMap computeParameterValueSet(final MasterReport report)
  {
    final LinkedMap retval = new LinkedMap();
    retval.put(MasterReport.REPORT_DATE_PROPERTY, new Date());

    final ReportParameterValues reportParameterValues = report.getParameterValues();
    final ParameterDefinitionEntry[] columnNames = report.getParameterDefinition().getParameterDefinitions();
    for (int i = 0; i < columnNames.length; i++)
    {
      final ParameterDefinitionEntry parameter = columnNames[i];
      final String columnName = parameter.getName();
      if (columnName == null)
      {
        continue;
      }
      retval.put(columnName, reportParameterValues.get(columnName));
    }
    return retval;
  }
View Full Code Here

   *
   * @return the column names as array.
   */
  public String[] getColumnNames()
  {
    final LinkedMap columnSources = new LinkedMap();
    final String[] dataRowNames = dataRow.getColumnNames();
    for (int i = 0; i < dataRowNames.length; i++)
    {
      final String dataRowName = dataRowNames[i];
      columnSources.put(dataRowName, Boolean.TRUE);
    }

    final String[] envRowNames = envDataRow.getColumnNames();
    for (int i = 0; i < envRowNames.length; i++)
    {
      final String dataRowName = envRowNames[i];
      columnSources.put(dataRowName, Boolean.FALSE);
    }
    return (String[]) columnSources.keys(new String[columnSources.size()]);
  }
View Full Code Here

    return cdf.normalizeInternal(derive);
  }

  public String[] getQueryNames()
  {
    final LinkedMap nameSet = new LinkedMap();
    for (int i = 0; i < dataFactories.size(); i++)
    {
      final DataFactory dataFactory = dataFactories.get(i);
      final String[] queryNames = dataFactory.getQueryNames();
      for (int j = 0; j < queryNames.length; j++)
      {
        final String queryName = queryNames[j];
        nameSet.put(queryName, queryName);
      }
    }
    return (String[]) nameSet.keys(new String[nameSet.size()]);
  }
View Full Code Here

  /**
   * Creates an empty attribute list with no default values.
   */
  public AttributeList()
  {
    this.entryList = new LinkedMap();
    this.lookupKey = new AttributeEntry(null, "lookup", "value");
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.util.LinkedMap

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.