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

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


  }

  public XmlReadHandler createReadHandler(final XmlDocumentInfo documentInfo)
  {
    final DataFactoryReadHandlerFactory factory = DataFactoryReadHandlerFactory.getInstance();
    final XmlReadHandler result = factory.getHandler(MondrianDataFactoryModule.NAMESPACE, "banded-mdx-datasource");
    if (result == null)
    {
      throw new IllegalStateException("Failed to return a valid readhandler");
    }
    return result;
View Full Code Here


   *           if there is a parsing error.
   */
  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;
    }

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

    if ("query".equals(tagName))
    {
      final XmlReadHandler queryReadHandler = new PropertyReadHandler();
      queries.add(queryReadHandler);
      return queryReadHandler;
    }

    return null;
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

                return new MasterDetailReadHandler(element);
            }
        }
        if (OfficeNamespaces.DRAWING_NS.equals(uri))
        {
            final XmlReadHandler readHandler;
            if (OfficeToken.OBJECT_OLE.equals(tagName))
            {
                readHandler = new ObjectOleReadHandler(element);
            }
            else if ("frame".equals(tagName))
View Full Code Here

  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

      return null;
    }

    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 < 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;
    }
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

   */
  protected void doneParsing() throws SAXException
  {
    for (int i = 0; i < chunks.size(); i++)
    {
      final XmlReadHandler readHandler = (XmlReadHandler) chunks.get(i);
      final Object object = readHandler.getObject();
      if (object instanceof SourceChunk)
      {
        validationSequence.addSourceChunk((SourceChunk) object);
      }
      else if (object instanceof ResultTable)
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.