Package org.pentaho.reporting.libraries.xmlns.parser

Examples of org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler


  protected void doneParsing()
      throws SAXException
  {
    for (int i = 0; i < elementHandlers.size(); i++)
    {
      final XmlReadHandler readHandler = elementHandlers.get(i);
      final Element e = (Element) readHandler.getObject();
      band.addElement(e);
    }

    for (int i = 0; i < styleExpressionHandlers.size(); i++)
    {
View Full Code Here


    {
      return null;
    }
    if ("band".equals(tagName))
    {
      final XmlReadHandler readHandler = new BandReadHandler();
      items.add(readHandler);
      return readHandler;
    }

    if ("element".equals(tagName))
    {
      final XmlReadHandler readHandler = new ContentElementReadHandler();
      items.add(readHandler);
      return readHandler;
    }

    if ("rectangle".equals(tagName))
    {
      final XmlReadHandler readHandler = new RectangleElementReadHandler();
      items.add(readHandler);
      return readHandler;
    }

    if ("round-rectangle".equals(tagName))
    {
      final XmlReadHandler readHandler = new RoundRectangleElementReadHandler();
      items.add(readHandler);
      return readHandler;
    }

    if ("horizontal-line".equals(tagName))
    {
      final XmlReadHandler readHandler = new HorizontalLineElementReadHandler();
      items.add(readHandler);
      return readHandler;
    }

    if ("vertical-line".equals(tagName))
    {
      final XmlReadHandler readHandler = new VerticalLineElementReadHandler();
      items.add(readHandler);
      return readHandler;
    }
    return null;
  }
View Full Code Here

  protected void doneParsing() throws SAXException
  {
    super.doneParsing();
    for (int i = 0; i < items.size(); i++)
    {
      final XmlReadHandler handler = (XmlReadHandler) items.get(i);
      final Element element = (Element) handler.getObject();
      band.addElement(element);
    }
  }
View Full Code Here

    protected XmlReadHandler getHandlerForChild(final String uri,
            final String tagName,
            final Attributes atts)
            throws SAXException
    {
        final XmlReadHandler erh;
        if (OfficeNamespaces.CHART_NS.equals(uri))
        {
            erh = new ChartReadHandler(this);
            if (pre)
            {
View Full Code Here

    protected XmlReadHandler getHandlerForChild(final String uri,
            final String tagName,
            final Attributes atts)
            throws SAXException
    {
        final XmlReadHandler rh;
        if (OfficeNamespaces.TABLE_NS.equals(uri))
        {
            if (OfficeToken.TABLE_CELL.equals(tagName))
            {
                rh = new TableCellReadHandler();
View Full Code Here

  protected XmlReadHandler getHandlerForChild(final String uri,
                                              final String tagName,
                                              final Attributes atts) throws SAXException
  {
    final PmdConfigReadHandlerFactory configfactory = PmdConfigReadHandlerFactory.getInstance();
    final XmlReadHandler confighandler = configfactory.getHandler(uri, tagName);
    if (confighandler instanceof IPmdConfigReadHandler)
    {
      configReadHandler = (IPmdConfigReadHandler) confighandler;
      return confighandler;
    }
View Full Code Here

  protected void doneParsing() throws SAXException
  {
    final MetaSelector[] selectors = new MetaSelector[this.selectors.size()];
    for (int i = 0; i < this.selectors.size(); i++)
    {
      final XmlReadHandler o = (XmlReadHandler) this.selectors.get(i);
      selectors[i] = (MetaSelector) o.getObject();
    }
    final DataAttributes attributes;
    if (attributesReadHandler == null)
    {
      attributes = EmptyDataAttributes.INSTANCE;
View Full Code Here

        return new PropertiesDataSetReadHandler();
      }
      if ("org.pentaho.reportdesigner.crm.report.datasetplugin.sampledb.SampleDataSetReportElement".equals(type) ||
          "org.pentaho.reportdesigner.crm.report.datasetplugin.jdbc.JDBCDataSetReportElement".equals(type))
      {
        final XmlReadHandler readHandler = new JdbcDataSetReadHandler();
        dataSets.add(readHandler);
        return readHandler;
      }
      if ("org.pentaho.reportdesigner.crm.report.datasetplugin.multidataset.MultiDataSetReportElement".equals(type))
      {
        final XmlReadHandler readHandler = new MultiDataSetReadHandler();
        dataSets.add(readHandler);
        return readHandler;
      }
      if ("org.pentaho.reportdesigner.crm.report.datasetplugin.staticfactory.StaticFactoryDataSetReportElement".equals(type))
      {
        final XmlReadHandler readHandler = new StaticDataSetReadHandler();
        dataSets.add(readHandler);
        return readHandler;
      }
    }
    if ("padding".equals(tagName))
View Full Code Here

  protected void doneParsing() throws SAXException
  {
    dataFactory = new CompoundDataFactory();
    for (int i = 0; i < dataSets.size(); i++)
    {
      final XmlReadHandler handler = (XmlReadHandler) dataSets.get(i);
      dataFactory.add((DataFactory) handler.getObject());
    }
  }
View Full Code Here

  protected XmlReadHandler getHandlerForChild(final String uri,
                                              final String tagName,
                                              final Attributes atts) throws SAXException
  {
    final PmdConfigReadHandlerFactory configfactory = PmdConfigReadHandlerFactory.getInstance();
    final XmlReadHandler confighandler = configfactory.getHandler(uri, tagName);
    if (confighandler instanceof IPmdConfigReadHandler)
    {
      configReadHandler = (IPmdConfigReadHandler) confighandler;
      return confighandler;
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler

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.