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

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


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

    if ("query".equals(tagName))
    {
      final XmlReadHandler queryReadHandler = new PropertyReadHandler();
      queries.add(queryReadHandler);
      return queryReadHandler;
    }
    return null;
  }
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 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

    {
      return null;
    }
    if ("style".equals(tagName))
    {
      final XmlReadHandler handler = new StyleReadHandler(bundle);
      styleHandlers.add(handler);
      return handler;
    }
    return null;
  }
View Full Code Here

    {
      return null;
    }
    if ("attribute".equals(tagName))
    {
      final XmlReadHandler handler = new AttributeReadHandler(bundle);
      attributeHandlers.add(handler);
      return handler;
    }
    return null;
  }
View Full Code Here

                                              final String tagName,
                                              final Attributes atts) throws SAXException
  {

    final OlapConnectionReadHandlerFactory factory = OlapConnectionReadHandlerFactory.getInstance();
    final XmlReadHandler handler = factory.getHandler(uri, tagName);
    if (handler instanceof OlapConnectionReadHandler)
    {
      connectionProviderReadHandler = (OlapConnectionReadHandler) handler;
      return connectionProviderReadHandler;
    }
View Full Code Here

  }

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

                                              final String tagName,
                                              final Attributes atts) throws SAXException
  {
    final DataSourceProviderReadHandlerFactory dataSourceProviderReadHandlerFactory =
        DataSourceProviderReadHandlerFactory.getInstance();
    final XmlReadHandler dataSourceHandler = dataSourceProviderReadHandlerFactory.getHandler(uri, tagName);
    if (dataSourceHandler instanceof DataSourceProviderReadHandler)
    {
      dataSourceProviderHandler = (DataSourceProviderReadHandler) dataSourceHandler;
      return dataSourceProviderHandler;
    }

    final CubeFileProviderReadHandlerFactory cubeFileProviderReadHandlerFactory =
        CubeFileProviderReadHandlerFactory.getInstance();
    final XmlReadHandler cubeHandler = cubeFileProviderReadHandlerFactory.getHandler(uri, tagName);
    if (cubeHandler instanceof CubeFileProviderReadHandler)
    {
      cubeFileProviderReadHandler = (CubeFileProviderReadHandler) cubeHandler;
      return cubeFileProviderReadHandler;
    }
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.