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

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


  protected void doneParsing() throws SAXException
  {
    headers = new MailHeader[headerReadHandlers.size()];
    for (int i = 0; i < headerReadHandlers.size(); i++)
    {
      final XmlReadHandler handler = (XmlReadHandler) headerReadHandlers.get(i);
      headers[i] = (MailHeader) handler.getObject();
    }
  }
View Full Code Here


      {
        throw new ParseException("There is no factory for elements of type '" +
            type + '\'', getLocator());
      }

      final XmlReadHandler readHandler = new ElementReadHandler(element);
      elementHandlers.add(readHandler);
      return readHandler;
    }
    else if ("band".equals(tagName))
    {
      final XmlReadHandler readHandler = new BandReadHandler(new Band());
      elementHandlers.add(readHandler);
      return readHandler;
    }
    return null;
  }
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 void doneParsing() throws SAXException
  {
    for (int i = 0; i < parameterReadHandlers.size(); i++)
    {
      final XmlReadHandler handler = (XmlReadHandler) parameterReadHandlers.get(i);
      parameterDefinition.addParameterDefinition((ParameterDefinitionEntry) handler.getObject());
    }
  }
View Full Code Here

                                              final String tagName,
                                              final Attributes atts)
      throws SAXException
  {
    final ConnectionReadHandlerFactory factory = ConnectionReadHandlerFactory.getInstance();
    final XmlReadHandler handler = factory.getHandler(uri, tagName);
    if (handler instanceof ConnectionReadHandler)
    {
      connectionProviderReadHandler = (ConnectionReadHandler) handler;
      return connectionProviderReadHandler;
    }

    if (isSameNamespace(uri) == false)
    {
      return null;
    }

    if ("config".equals(tagName))
    {
      configReadHandler = new ConfigReadHandler();
      return configReadHandler;
    }
    if ("query".equals(tagName))
    {
      final XmlReadHandler queryReadHandler = new PropertyReadHandler();
      queries.add(queryReadHandler);
      return queryReadHandler;
    }
    return null;
  }
View Full Code Here

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

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

    super.doneParsing();

    final Band band = (Band) getElement();
    for (int i = 0; i < elementHandlers.size(); i++)
    {
      final XmlReadHandler readHandler = (XmlReadHandler) elementHandlers.get(i);
      final Element e = (Element) readHandler.getObject();
      band.addElement(e);
    }

  }
View Full Code Here

    if (ClassicEngineBoot.DATASCHEMA_NAMESPACE.equals(uri) == false)
    return null;

    if ("global-mapping".equals(tagName))
    {
      final XmlReadHandler handler = new GlobalRuleReadHandler();
      handlers.add(handler);
      return handler;
    }

    if ("direct-mapping".equals(tagName))
    {
      final XmlReadHandler handler = new DirectRuleReadHandler();
      handlers.add(handler);
      return handler;
    }

    if ("indirect-mapping".equals(tagName))
    {
      final XmlReadHandler handler = new MetaSelectorRuleReadHandler();
      handlers.add(handler);
      return handler;
    }

    return null;
View Full Code Here

  protected void doneParsing() throws SAXException
  {
    dataSchemaDefinition = new DefaultDataSchemaDefinition();
    for (int i = 0; i < handlers.size(); i++)
    {
      final XmlReadHandler handler = (XmlReadHandler) handlers.get(i);
      final DataSchemaRule rule = (DataSchemaRule) handler.getObject();
      dataSchemaDefinition.addRule(rule);
    }
  }
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.