|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.olap.OLAPObject
ca.sqlpower.architect.olap.MondrianModel.CubeDimension
ca.sqlpower.architect.olap.MondrianModel.Dimension
public static class MondrianModel.Dimension
A Dimension is a collection of hierarchies. There are two kinds: a public dimension belongs to a Schema, and be used by several cubes; a private dimension belongs to a Cube. The foreignKey field is only applicable to private dimensions.
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.olap.OLAPObject |
|---|
pcs |
| Constructor Summary | |
|---|---|
MondrianModel.Dimension()
Creates a new Dimension with all attributes set to their defaults. |
|
MondrianModel.Dimension(MondrianModel.Dimension original)
Creates a new Dimension with all attributes copied from the given Dimension. |
|
| Method Summary | |
|---|---|
void |
addChild(int index,
OLAPObject child)
Adds the given child or sets the appropriate property on this OLAPObject, allowing the overall target index to be specified. |
void |
addChild(OLAPObject child)
Adds the given child or sets the appropriate property on this OLAPObject, if this type of OLAPObject has the applicable addXXX() or setXXX() method for the given object's type. |
void |
addHierarchy(int pos,
MondrianModel.Hierarchy newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addHierarchy(MondrianModel.Hierarchy newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
boolean |
allowsChildren()
Returns true if this type of OLAPObject can ever return a non-empty list from OLAPObject.getChildren(), and false if getChildren() is always empty. |
java.lang.String |
getCaption()
|
java.util.List<OLAPObject> |
getChildren()
Returns a read-only unified list of all children of this OLAPObject. |
java.util.List<MondrianModel.Hierarchy> |
getHierarchies()
|
java.lang.String |
getName()
Default implementation. |
java.lang.String |
getType()
|
java.lang.String |
getUsagePrefix()
|
boolean |
removeChild(OLAPObject child)
Removes the given child on this OLAPObject if this type of OLAPObject has the applicable removeXXX() or setXXX(null) method for the given object's type. |
MondrianModel.Hierarchy |
removeHierarchy(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeHierarchy(MondrianModel.Hierarchy removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
void |
setCaption(java.lang.String newval)
|
void |
setName(java.lang.String newval)
|
void |
setType(java.lang.String newval)
|
void |
setUsagePrefix(java.lang.String newval)
|
java.lang.String |
toString()
|
| Methods inherited from class ca.sqlpower.architect.olap.MondrianModel.CubeDimension |
|---|
getForeignKey, setForeignKey |
| Methods inherited from class ca.sqlpower.architect.olap.OLAPObject |
|---|
addChildListener, addCompoundEditListener, addPropertyChangeListener, endCompoundEdit, fireChildAdded, fireChildRemoved, getParent, removeChildListener, removeCompoundEditListener, removePropertyChangeListener, startCompoundEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MondrianModel.Dimension()
public MondrianModel.Dimension(MondrianModel.Dimension original)
| Method Detail |
|---|
public java.lang.String toString()
toString in class MondrianModel.CubeDimensionpublic java.lang.String getName()
OLAPObject
getName in class MondrianModel.CubeDimensionpublic void setName(java.lang.String newval)
setName in class MondrianModel.CubeDimensionpublic java.lang.String getType()
public void setType(java.lang.String newval)
public java.lang.String getCaption()
getCaption in class MondrianModel.CubeDimensionpublic void setCaption(java.lang.String newval)
setCaption in class MondrianModel.CubeDimensionpublic java.lang.String getUsagePrefix()
public void setUsagePrefix(java.lang.String newval)
public void addHierarchy(int pos,
MondrianModel.Hierarchy newChild)
public void addHierarchy(MondrianModel.Hierarchy newChild)
public boolean removeHierarchy(MondrianModel.Hierarchy removeChild)
public MondrianModel.Hierarchy removeHierarchy(int pos)
public java.util.List<MondrianModel.Hierarchy> getHierarchies()
public java.util.List<OLAPObject> getChildren()
OLAPObject
getChildren in class MondrianModel.CubeDimensionpublic boolean allowsChildren()
OLAPObjectOLAPObject.getChildren(), and false if getChildren() is always empty.
allowsChildren in class MondrianModel.CubeDimensionpublic void addChild(OLAPObject child)
OLAPObjectThis method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.
This method isn't compile-time type safe, so it is recommended not to use it on "by-hand" usage of this API. This method is used during XML parsing, which can't be made compile-time type safe anyway.
addChild in class MondrianModel.CubeDimensionchild - The child to add.
public void addChild(int index,
OLAPObject child)
OLAPObjectThis method in the abstract base class always throws IllegalArgumentException because no children or properties are defined at this level.
This method isn't compile-time type safe, so it is recommended not to use it on "by-hand" usage of this API. This method is used for undo and redo, which can't be compile-time type safe anyway.
addChild in class MondrianModel.CubeDimensionindex - The overall index (same index as would be in
OLAPObject.getChildren()) at which to add the child.child - The child to add.public boolean removeChild(OLAPObject child)
OLAPObjectThis method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.
removeChild in class MondrianModel.CubeDimensionchild - The child to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||