it.eng.spagobi.engines.geo.dataset.provider
Class Hierarchy

java.lang.Object
  extended by it.eng.spagobi.engines.geo.dataset.provider.Hierarchy

public class Hierarchy
extends java.lang.Object

The Class Hierarchy.

Author:
Andrea Gioia (andrea.gioia@eng.it)

Nested Class Summary
static class Hierarchy.Level
          The Class Level.
 
Constructor Summary
Hierarchy(java.lang.String name)
          Instantiates a new hierarchy.
Hierarchy(java.lang.String name, java.lang.String table)
          Instantiates a new hierarchy.
 
Method Summary
 void addLevel(Hierarchy.Level level)
          Adds the level.
 Hierarchy.Level getLevel(java.lang.String levelName)
          Gets the level.
 java.util.Set getLevelNames()
          Gets the level names.
 java.util.List getLevels()
          Gets the levels.
 java.lang.String getName()
          Gets the name.
 java.util.List getSublevels(java.lang.String levelName)
          Gets the sublevels.
 java.lang.String getTable()
          Gets the table.
 java.lang.String getType()
          Gets the type.
 void setName(java.lang.String name)
          Sets the name.
 void setTable(java.lang.String table)
          Sets the table.
 void setType(java.lang.String type)
          Sets the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hierarchy

public Hierarchy(java.lang.String name)
Instantiates a new hierarchy.

Parameters:
name - the name

Hierarchy

public Hierarchy(java.lang.String name,
                 java.lang.String table)
Instantiates a new hierarchy.

Parameters:
name - the name
table - the table
Method Detail

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getTable

public java.lang.String getTable()
Gets the table.

Returns:
the table

setTable

public void setTable(java.lang.String table)
Sets the table.

Parameters:
table - the new table

getType

public java.lang.String getType()
Gets the type.

Returns:
the type

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - the new type

addLevel

public void addLevel(Hierarchy.Level level)
Adds the level.

Parameters:
level - the level

getLevel

public Hierarchy.Level getLevel(java.lang.String levelName)
Gets the level.

Parameters:
levelName - the level name
Returns:
the level

getLevels

public java.util.List getLevels()
Gets the levels.

Returns:
the levels

getSublevels

public java.util.List getSublevels(java.lang.String levelName)
Gets the sublevels.

Parameters:
levelName - the level name
Returns:
the sublevels

getLevelNames

public java.util.Set getLevelNames()
Gets the level names.

Returns:
the level names