Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.metadata.impl
Class OlapDimensionImpl

java.lang.Object
  extended by com.citra.pivot.olap.metadata.impl.AbstractOlapObject
      extended by com.citra.pivot.olap.metadata.impl.OlapDimensionImpl
All Implemented Interfaces:
OlapDimension, OlapObject

public class OlapDimensionImpl
extends AbstractOlapObject
implements OlapDimension

OlapDimensionImpl is a modifiable OlapDimension implementation.


Field Summary
protected  OlapHierarchy defaultHierarchy
          the default hierarchy
protected  HierarchyList hierarchies
          the dimension's hierarchies
protected  boolean isMeasureDimension
          whether this is a measure dimension
 
Fields inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
caption, description, id, name
 
Constructor Summary
OlapDimensionImpl(String name, String id, String caption, String description, boolean isMeasureDimension)
          Constructs an OlapDimensionImpl.
 
Method Summary
 OlapHierarchy getDefaultHierarchy()
          Retrieves the default hierarchy of the dimension.
 HierarchyList getHierarchies()
          Retrieves the hierarchies of the dimension.
 boolean isMeasureDimension()
          Determines whether the dimension is the measure dimension.
 void setDefaultHierarchy(OlapHierarchy hierarchy)
          Assigns the default hierarchy of this dimension.
 void setHierarchies(List hierarchies)
          Assigns the hierarchies of this dimension.
 void setMeasureDimension(boolean isMeasureDimension)
          Determines whether this dimension is the measure dimension.
 String toString()
          Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
 
Methods inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
getCaption, getDescription, getID, getName, setCaption, setDescription, setID, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapObject
getCaption, getDescription, getID, getName
 

Field Detail

hierarchies

protected HierarchyList hierarchies
the dimension's hierarchies


defaultHierarchy

protected OlapHierarchy defaultHierarchy
the default hierarchy


isMeasureDimension

protected boolean isMeasureDimension
whether this is a measure dimension

Constructor Detail

OlapDimensionImpl

public OlapDimensionImpl(String name,
                         String id,
                         String caption,
                         String description,
                         boolean isMeasureDimension)
Constructs an OlapDimensionImpl.

Method Detail

getDefaultHierarchy

public OlapHierarchy getDefaultHierarchy()
Retrieves the default hierarchy of the dimension.

Specified by:
getDefaultHierarchy in interface OlapDimension
Returns:
the dimension's default hierarchy

getHierarchies

public HierarchyList getHierarchies()
Retrieves the hierarchies of the dimension.

Specified by:
getHierarchies in interface OlapDimension
Returns:
the dimension's hierarchies

isMeasureDimension

public boolean isMeasureDimension()
Determines whether the dimension is the measure dimension.

Specified by:
isMeasureDimension in interface OlapDimension
Returns:
true if the dimension is the measure dimension, false otherwise

setDefaultHierarchy

public void setDefaultHierarchy(OlapHierarchy hierarchy)
Assigns the default hierarchy of this dimension.

Parameters:
hierarchy - the default hierarchy to assign

setHierarchies

public void setHierarchies(List hierarchies)
Assigns the hierarchies of this dimension.

Parameters:
hierarchies - the hierarchies to assign

setMeasureDimension

public void setMeasureDimension(boolean isMeasureDimension)
Determines whether this dimension is the measure dimension.

Parameters:
isMeasureDimension - true if this dimension is the measure dimension, false otherwise

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class AbstractOlapObject
Returns:
a string representation of the object.

Copyright © 2011 Citra Technologies. All Rights Reserved.