Examples of LinkedMap


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

  private static InlineSubreportMarker[] collectMarkers(final ProcessState state,
                                                        final RootLevelBand rootLevelBand)
      throws ReportProcessingException
  {
    final LinkedMap markers = collectSubReportMarkers(state, rootLevelBand);
    if (markers == null || markers.size() == 0)
    {
      return EMPTY_MARKERS;
    }

    return (InlineSubreportMarker[])
        markers.values(new InlineSubreportMarker[markers.size()]);
  }
View Full Code Here

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

  }

  public static boolean hasSubReports(final ProcessState state,
                                      final RootLevelBand rootLevelBand) throws ReportProcessingException
  {
    final LinkedMap markers = collectSubReportMarkers(state, rootLevelBand);
    if (markers == null || markers.size() == 0)
    {
      return false;
    }
    return true;
  }
View Full Code Here

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

  private static LinkedMap collectSubReportMarkers(final ProcessState state,
                                                   final RootLevelBand rootLevelBand)
      throws ReportProcessingException
  {
    final LinkedMap list = collectSubReportMarkers((Section) rootLevelBand, null);
    if (list == null)
    {

      final InlineSubreportMarker[] subreports = state.getLayoutProcess().getOutputFunction().getInlineSubreports();
      if (subreports.length == 0)
      {
        return null;
      }
      final LinkedMap map = new LinkedMap();
      for (int i = 0; i < subreports.length; i++)
      {
        final InlineSubreportMarker subreport = subreports[i];
        map.put(subreport.getSubreport().getObjectID(), subreport);
      }
      return map;
    }

    final InlineSubreportMarker[] markers = state.getLayoutProcess().getOutputFunction().getInlineSubreports();
View Full Code Here

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

    for (int i = 0; i < count; i++)
    {
      final SubReport element = rootLevelBand.getSubReport(i);
      if (list == null)
      {
        list = new LinkedMap();
      }
      list.put(element.getObjectID(),
          new InlineSubreportMarker(element, null, SubReportProcessType.BANDED));
    }
    return list;
View Full Code Here

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

      final ReportElement element = rootLevelBand.getElement(i);
      if (element instanceof SubReport)
      {
        if (list == null)
        {
          list = new LinkedMap();
        }
        list.put(element.getObjectID(),
            new InlineSubreportMarker((SubReport) element, DUMMY_SUBREPORT_MARKER, SubReportProcessType.INLINE));
      }
      else if (element instanceof Section)
View Full Code Here

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

{
  private LinkedMap linkedMap;

  public ReportParameterValues()
  {
    this.linkedMap = new LinkedMap();
  }
View Full Code Here

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

        addAttributeGroup((AttributeGroup) entry.getValue());
        continue;
      }
      final AttributeGroup entryGroup = (AttributeGroup) entry.getValue();
      final String name = styleGroup.getName();
      final LinkedMap styles = new LinkedMap();
      final AttributeDefinition[] data = styleGroup.getMetaData();
      for (int i = 0; i < data.length; i++)
      {
        final AttributeDefinition handler = data[i];
        styles.put(handler.getName(), handler);
      }

      final AttributeDefinition[] entryData = entryGroup.getMetaData();
      for (int i = 0; i < entryData.length; i++)
      {
        final AttributeDefinition handler = entryData[i];
        styles.put(handler.getName(), handler);
      }

      addAttributeGroup(new AttributeGroup(name,
          (AttributeDefinition[]) styles.values(new AttributeDefinition[styles.size()])));
    }

  }
View Full Code Here

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

        addStyleGroup((StyleGroup) entry.getValue());
        continue;
      }
      final StyleGroup entryGroup = (StyleGroup) entry.getValue();
      final String name = styleGroup.getName();
      final LinkedMap styles = new LinkedMap();
      final StyleReadHandler[] data = styleGroup.getMetaData();
      for (int i = 0; i < data.length; i++)
      {
        final StyleReadHandler handler = data[i];
        styles.put(handler.getName(), handler);
      }

      final StyleReadHandler[] entryData = entryGroup.getMetaData();
      for (int i = 0; i < entryData.length; i++)
      {
        final StyleReadHandler handler = entryData[i];
        styles.put(handler.getName(), handler);
      }

      addStyleGroup(new StyleGroup(name, (StyleReadHandler[]) styles.values(new StyleReadHandler[styles.size()])));
    }
  }
View Full Code Here

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

    return retval;
  }

  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

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

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

    exportParameters = new LinkedMap();
    inputParameters = new LinkedMap();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.