/*
// This software is subject to the terms of the Eclipse Public License v1.0
// Agreement, available at the following URL:
// http://www.eclipse.org/legal/epl-v10.html.
// Copyright (C) 2007-2010 Julian Hyde
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
*/
package org.olap4j.driver.olap4ld;
import org.olap4j.impl.Named;
import org.olap4j.mdx.ParseTreeNode;
import org.olap4j.metadata.Cube;
import org.olap4j.metadata.NamedSet;
/**
* Implementation of {@link org.olap4j.metadata.NamedSet}
* for XML/A providers.
*
* @author jhyde
* @version $Id: XmlaOlap4jNamedSet.java 373 2010-12-02 22:06:52Z jhyde $
* @since Dec 4, 2007
*/
class Olap4ldNamedSet
implements NamedSet, Named
{
private final Olap4ldCube olap4jCube;
private final String name;
Olap4ldNamedSet(
Olap4ldCube olap4jCube,
String name)
{
this.olap4jCube = olap4jCube;
this.name = name;
}
public Cube getCube() {
return olap4jCube;
}
public ParseTreeNode getExpression() {
throw new UnsupportedOperationException();
}
public String getName() {
return name;
}
public String getUniqueName() {
return name;
}
public String getCaption() {
return name;
}
public String getDescription() {
return "";
}
public boolean isVisible() {
return true;
}
}
// End XmlaOlap4jNamedSet.java