mondrian.olap
Class MondrianDef.CubeDimension

java.lang.Object
  extended by org.eigenbase.xom.ElementDef
      extended by mondrian.olap.MondrianDef.CubeDimension
All Implemented Interfaces:
Serializable, Cloneable, NodeDef
Direct Known Subclasses:
MondrianDef.Dimension, MondrianDef.DimensionUsage, MondrianDef.VirtualCubeDimension
Enclosing class:
MondrianDef

public abstract static class MondrianDef.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
 String caption
           
 String foreignKey
           
 Boolean highCardinality
           
 String name
           
 
Constructor Summary
MondrianDef.CubeDimension()
           
MondrianDef.CubeDimension(DOMWrapper _def)
           
 
Method Summary
 void display(PrintWriter _out, int _indent)
           
 boolean displayDiff(ElementDef _other, PrintWriter _out, int _indent)
           
 void displayXML(XMLOutput _out, int _indent)
           
abstract  MondrianDef.Dimension getDimension(MondrianDef.Schema schema)
          Looks up the base dimension of this dimension.
 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, getMixedChildren_new, getMixedChildren, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name

caption

public String caption

foreignKey

public String foreignKey

highCardinality

public Boolean highCardinality
Constructor Detail

MondrianDef.CubeDimension

public MondrianDef.CubeDimension()

MondrianDef.CubeDimension

public MondrianDef.CubeDimension(DOMWrapper _def)
                          throws XOMException
Throws:
XOMException
Method Detail

getName

public String getName()
Specified by:
getName in interface NodeDef
Overrides:
getName in class ElementDef

display

public void display(PrintWriter _out,
                    int _indent)

displayXML

public void displayXML(XMLOutput _out,
                       int _indent)
Specified by:
displayXML in interface NodeDef
Overrides:
displayXML in class ElementDef

displayDiff

public boolean displayDiff(ElementDef _other,
                           PrintWriter _out,
                           int _indent)
Overrides:
displayDiff in class ElementDef

getDimension

public abstract MondrianDef.Dimension getDimension(MondrianDef.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.

Pre-condition:
schema != null
Post-condition:
return != null
Parameters:
schema - Schema, never null

SourceForge.net_Logo