001 /*
002 // $Id: MdxParserFactory.java 229 2009-05-08 19:11:29Z jhyde $
003 // This software is subject to the terms of the Eclipse Public License v1.0
004 // Agreement, available at the following URL:
005 // http://www.eclipse.org/legal/epl-v10.html.
006 // Copyright (C) 2006-2008 Julian Hyde
007 // All Rights Reserved.
008 // You must accept the terms of that agreement to use this software.
009 */
010 package org.olap4j.mdx.parser;
011
012 import org.olap4j.OlapConnection;
013
014 /**
015 * Factory for MDX parsers.
016 *
017 * @author jhyde
018 * @version $Id: MdxParserFactory.java 229 2009-05-08 19:11:29Z jhyde $
019 * @since Aug 22, 2006
020 */
021 public interface MdxParserFactory {
022 /**
023 * Creates an MDX parser.
024 *
025 * @param connection Connection in which to resolve identifiers
026 * @return MDX parser
027 */
028 MdxParser createMdxParser(OlapConnection connection);
029
030 /**
031 * Creates an MDX validator.
032 *
033 * @param connection Connection in which to resolve identifiers
034 * @return MDX validator
035 */
036 MdxValidator createMdxValidator(OlapConnection connection);
037 }
038
039 // End MdxParserFactory.java