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

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


    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

  }

  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

  }

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

  }

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

  }

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

  }

  public XmlReadHandler createReadHandler(final XmlDocumentInfo documentInfo)
  {
    final DataFactoryReadHandlerFactory factory = DataFactoryReadHandlerFactory.getInstance();
    final XmlReadHandler result = factory.getHandler(MondrianDataFactoryModule.NAMESPACE, "simple-denormalized-mdx-datasource");
    if (result == null)
    {
      throw new IllegalStateException("Failed to return a valid readhandler");
    }
    return result;
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

                                              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

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.