001/*
002// $Id: NamedSet.java 482 2012-01-05 23:27:27Z jhyde $
003//
004// Licensed to Julian Hyde under one or more contributor license
005// agreements. See the NOTICE file distributed with this work for
006// additional information regarding copyright ownership.
007//
008// Julian Hyde licenses this file to you under the Apache License,
009// Version 2.0 (the "License"); you may not use this file except in
010// compliance with the License. You may obtain a copy of the License at:
011//
012// http://www.apache.org/licenses/LICENSE-2.0
013//
014// Unless required by applicable law or agreed to in writing, software
015// distributed under the License is distributed on an "AS IS" BASIS,
016// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017// See the License for the specific language governing permissions and
018// limitations under the License.
019*/
020package org.olap4j.metadata;
021
022import org.olap4j.mdx.ParseTreeNode;
023
024/**
025 * Metadata object describing a named set defined against a {@link Cube}.
026 *
027 * @author jhyde
028 * @version $Id: NamedSet.java 482 2012-01-05 23:27:27Z jhyde $
029 * @since Oct 24, 2006
030 */
031public interface NamedSet extends MetadataElement {
032    /**
033     * Returns the <code>Cube</code> that this <code>NamedSet</code> belongs
034     * to.
035     *
036     * @return cube this named set belongs to
037     */
038    Cube getCube();
039
040    /**
041     * Returns the expression which gives the value of this NamedSet.
042     *
043     * @return expression
044     */
045    ParseTreeNode getExpression();
046}
047
048// End NamedSet.java