001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2010-2011 Pentaho
008// All Rights Reserved.
009*/
010package mondrian.parser;
011
012import mondrian.olap.*;
013import mondrian.server.Statement;
014
015/**
016 * Default implementation of {@link mondrian.parser.MdxParserValidator}.
017 *
018 * @author jhyde
019 */
020public class MdxParserValidatorImpl implements MdxParserValidator {
021    /**
022     * Creates a MdxParserValidatorImpl.
023     */
024    public MdxParserValidatorImpl() {
025    }
026
027    public QueryPart parseInternal(
028        Statement statement,
029        String queryString,
030        boolean debug,
031        FunTable funTable,
032        boolean strictValidation)
033    {
034        return new Parser().parseInternal(
035            new Parser.FactoryImpl(),
036            statement, queryString, debug, funTable, strictValidation);
037    }
038
039    public Exp parseExpression(
040        Statement statement,
041        String queryString,
042        boolean debug,
043        FunTable funTable)
044    {
045        return new Parser().parseExpression(
046            new Parser.FactoryImpl(),
047            statement, queryString, debug, funTable);
048    }
049}
050
051// End MdxParserValidatorImpl.java