Package mondrian.gui
Class MondrianGuiDef.NamedSet
- java.lang.Object
-
- org.eigenbase.xom.ElementDef
-
- mondrian.gui.MondrianGuiDef.NamedSet
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,NodeDef
- Enclosing class:
- MondrianGuiDef
public static class MondrianGuiDef.NamedSet extends ElementDef
Defines a named set which can be used in queries in the same way as a set defined using a WITH SET clause.
A named set can be defined against a particular cube, or can be global to a schema. If it is defined against a cube, it is only available to queries which use that cube.
A named set defined against a cube is not inherited by a virtual cubes defined against that cube. (But you can define a named set against a virtual cube.)
A named set defined against a schema is available in all cubes and virtual cubes in that schema. However, it is only valid if the cube contains dimensions with the names required to make the formula valid.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description MondrianGuiDef.Annotations
annotations
Contains values of user-defined properties.java.lang.String
caption
java.lang.String
description
java.lang.String
formula
MondrianGuiDef.Formula
formulaElement
MDX expression which gives the value of this set.java.lang.String
name
-
Constructor Summary
Constructors Constructor Description NamedSet()
NamedSet(DOMWrapper _def)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
display(java.io.PrintWriter _out, int _indent)
boolean
displayDiff(ElementDef _other, java.io.PrintWriter _out, int _indent)
void
displayXML(XMLOutput _out, int _indent)
java.lang.String
getFormula()
Returns the formula, looking for a sub-element called "Formula" first, then looking for an attribute called "formula".java.lang.String
getName()
-
Methods inherited from class org.eigenbase.xom.ElementDef
addChild, addChildren, clone, constructElement, constructElement, deepCopy, diff, displayAttribute, displayAttributeDiff, displayElement, displayElementArray, displayElementArrayDiff, displayElementDiff, displayIndent, displayString, displayStringArray, displayStringArrayDiff, displayStringDiff, displayXML, displayXMLElement, displayXMLElementArray, displayXMLString, displayXMLStringArray, equals, getChildren, getElementChildren, getElementClass, getLocation, getMixedChildren, getMixedChildren_new, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
-
-
-
-
Field Detail
-
name
public java.lang.String name
-
caption
public java.lang.String caption
-
description
public java.lang.String description
-
formula
public java.lang.String formula
-
annotations
public MondrianGuiDef.Annotations annotations
Contains values of user-defined properties.
-
formulaElement
public MondrianGuiDef.Formula formulaElement
MDX expression which gives the value of this set.
-
-
Constructor Detail
-
NamedSet
public NamedSet()
-
NamedSet
public NamedSet(DOMWrapper _def) throws XOMException
- Throws:
XOMException
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceNodeDef
- Overrides:
getName
in classElementDef
-
display
public void display(java.io.PrintWriter _out, int _indent)
-
displayXML
public void displayXML(XMLOutput _out, int _indent)
- Specified by:
displayXML
in interfaceNodeDef
- Overrides:
displayXML
in classElementDef
-
displayDiff
public boolean displayDiff(ElementDef _other, java.io.PrintWriter _out, int _indent)
- Overrides:
displayDiff
in classElementDef
-
getFormula
public java.lang.String getFormula()
Returns the formula, looking for a sub-element called "Formula" first, then looking for an attribute called "formula".
-
-