Copyright © 2011 Citra Technologies. All Rights Reserved.

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

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

public class OlapHierarchyImpl
extends AbstractOlapObject
implements OlapHierarchy

OlapHierarchyImpl is a modifiable OlapHierarchy implementation.


Field Summary
protected  OlapMemberImpl defaultMember
          the hierarchy's default member
protected  OlapDimension dimension
          the hierarchy's dimension
protected  boolean hasAll
          whether the hierarchy has an 'All' member
protected  LevelList levels
          the hierarchy's levels
 
Fields inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
caption, description, id, name
 
Constructor Summary
OlapHierarchyImpl(String name, String id, String caption, String description, OlapDimensionImpl dimension, boolean hasAll)
          Constructs an OlapHierarchyImpl.
 
Method Summary
 OlapMember getDefaultMember()
          Retrieves the default member of the hierarchy.
 OlapDimension getDimension()
          Retrieves the dimension this hierarchy belongs to.
 LevelList getLevels()
          Retrieves the levels that the hierarchy contains.
 boolean hasAll()
          Determines whether the hierarchy has an 'all' member.
 void setDefaultMember(OlapMemberImpl defaultMember)
          Assigns the default member of this hierarchy.
 void setDimension(OlapDimension dimension)
          Assigns the dimension of this hierarchy.
 void setHasAll(boolean hasAll)
          Determines whether the hierarchy has an 'All' member.
 void setLevels(List levels)
          Assigns the levels of this hierarchy.
 
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, toString, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapObject
getCaption, getDescription, getID, getName
 

Field Detail

dimension

protected OlapDimension dimension
the hierarchy's dimension


levels

protected LevelList levels
the hierarchy's levels


hasAll

protected boolean hasAll
whether the hierarchy has an 'All' member


defaultMember

protected OlapMemberImpl defaultMember
the hierarchy's default member

Constructor Detail

OlapHierarchyImpl

public OlapHierarchyImpl(String name,
                         String id,
                         String caption,
                         String description,
                         OlapDimensionImpl dimension,
                         boolean hasAll)
Constructs an OlapHierarchyImpl.

Method Detail

getDefaultMember

public OlapMember getDefaultMember()
Retrieves the default member of the hierarchy.

Specified by:
getDefaultMember in interface OlapHierarchy
Returns:
the hierarchy's default member

getDimension

public OlapDimension getDimension()
Retrieves the dimension this hierarchy belongs to.

Specified by:
getDimension in interface OlapHierarchy
Returns:
the hierarchy's dimension

getLevels

public LevelList getLevels()
Retrieves the levels that the hierarchy contains.

Specified by:
getLevels in interface OlapHierarchy
Returns:
the hierarchy's levels

hasAll

public boolean hasAll()
Determines whether the hierarchy has an 'all' member.

Specified by:
hasAll in interface OlapHierarchy
Returns:
true if the hierarchy has an 'all' member, false otherwise

setDefaultMember

public void setDefaultMember(OlapMemberImpl defaultMember)
Assigns the default member of this hierarchy.

Parameters:
defaultMember - the default member to assign

setDimension

public void setDimension(OlapDimension dimension)
Assigns the dimension of this hierarchy.

Parameters:
dimension - the dimension to assign

setHasAll

public void setHasAll(boolean hasAll)
Determines whether the hierarchy has an 'All' member.

Parameters:
hasAll - true if the hierarchy has an 'All' member, false otherwise

setLevels

public void setLevels(List levels)
Assigns the levels of this hierarchy.

Parameters:
levels - the hierarchy levels to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.