Package mondrian.gui
Class MondrianGuiDef.CubeDimension
- java.lang.Object
-
- org.eigenbase.xom.ElementDef
-
- mondrian.gui.MondrianGuiDef.CubeDimension
-
- All Implemented Interfaces:
Serializable,Cloneable,NodeDef
- Direct Known Subclasses:
MondrianGuiDef.Dimension,MondrianGuiDef.DimensionUsage,MondrianGuiDef.VirtualCubeDimension
- Enclosing class:
- MondrianGuiDef
public abstract static class MondrianGuiDef.CubeDimension extends ElementDef
A CubeDimension is either a usage of a Dimension ('shared dimension', in MSOLAP parlance), or a 'private dimension'.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description MondrianGuiDef.AnnotationsannotationsContains values of user-defined properties.StringcaptionStringdescriptionStringforeignKeyBooleanhighCardinalityStringnameBooleanvisible
-
Constructor Summary
Constructors Constructor Description CubeDimension()CubeDimension(DOMWrapper _def)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddisplay(PrintWriter _out, int _indent)booleandisplayDiff(ElementDef _other, PrintWriter _out, int _indent)voiddisplayXML(XMLOutput _out, int _indent)abstract MondrianGuiDef.DimensiongetDimension(MondrianGuiDef.Schema schema)Looks up the base dimension of this dimension.StringgetName()-
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 String name
-
caption
public String caption
-
visible
public Boolean visible
-
description
public String description
-
foreignKey
public String foreignKey
-
highCardinality
public Boolean highCardinality
-
annotations
public MondrianGuiDef.Annotations annotations
Contains values of user-defined properties.
-
-
Constructor Detail
-
CubeDimension
public CubeDimension()
-
CubeDimension
public CubeDimension(DOMWrapper _def) throws XOMException
- Throws:
XOMException
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceNodeDef- Overrides:
getNamein classElementDef
-
display
public void display(PrintWriter _out, int _indent)
-
displayXML
public void displayXML(XMLOutput _out, int _indent)
- Specified by:
displayXMLin interfaceNodeDef- Overrides:
displayXMLin classElementDef
-
displayDiff
public boolean displayDiff(ElementDef _other, PrintWriter _out, int _indent)
- Overrides:
displayDiffin classElementDef
-
getDimension
public abstract MondrianGuiDef.Dimension getDimension(MondrianGuiDef.Schema schema)
Looks up the base dimension of this dimension. If this is a usage of a shared dimension, returns the referenced dimension; otherwise returns the dimension itself.Never returns null; if the dimension cannot be found, throws an error.
- Parameters:
schema- Schema, never null- Pre-condition:
- schema != null
- Post-condition:
- return != null
-
-