ca.sqlpower.architect.olap
Class MondrianModel.AggPattern

java.lang.Object
  extended by ca.sqlpower.architect.olap.OLAPObject
      extended by ca.sqlpower.architect.olap.MondrianModel.AggTable
          extended by ca.sqlpower.architect.olap.MondrianModel.AggPattern
Enclosing class:
MondrianModel

public static class MondrianModel.AggPattern
extends MondrianModel.AggTable


Field Summary
 
Fields inherited from class ca.sqlpower.architect.olap.OLAPObject
pcs
 
Constructor Summary
MondrianModel.AggPattern()
          Creates a new AggPattern with all attributes set to their defaults.
MondrianModel.AggPattern(MondrianModel.AggPattern original)
          Creates a new AggPattern with all attributes copied from the given AggPattern.
 
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 addExclude(int pos, MondrianModel.AggExclude newChild)
          Adds the given child object at the specified position, firing an OLAPChildEvent.
 void addExclude(MondrianModel.AggExclude 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.util.List<OLAPObject> getChildren()
          Returns a read-only unified list of all children of this OLAPObject.
 java.util.List<MondrianModel.AggExclude> getExcludes()
           
 java.lang.String getPattern()
           
 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.AggExclude removeExclude(int pos)
          Removes the child object at the given position, firing an OLAPChildEvent.
 boolean removeExclude(MondrianModel.AggExclude removeChild)
          Removes the given child object, firing an OLAPChildEvent if the child was found.
 void setPattern(java.lang.String newval)
           
 java.lang.String toString()
           
 
Methods inherited from class ca.sqlpower.architect.olap.MondrianModel.AggTable
addForeignKey, addForeignKey, addIgnoreColumn, addIgnoreColumn, addLevel, addLevel, addMeasure, addMeasure, getFactcount, getForeignKeys, getIgnorecase, getIgnoreColumns, getLevels, getMeasures, removeForeignKey, removeForeignKey, removeIgnoreColumn, removeIgnoreColumn, removeLevel, removeLevel, removeMeasure, removeMeasure, setFactcount, setIgnorecase
 
Methods inherited from class ca.sqlpower.architect.olap.OLAPObject
addChildListener, addCompoundEditListener, addPropertyChangeListener, endCompoundEdit, fireChildAdded, fireChildRemoved, getName, getParent, removeChildListener, removeCompoundEditListener, removePropertyChangeListener, startCompoundEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MondrianModel.AggPattern

public MondrianModel.AggPattern()
Creates a new AggPattern with all attributes set to their defaults.


MondrianModel.AggPattern

public MondrianModel.AggPattern(MondrianModel.AggPattern original)
Creates a new AggPattern with all attributes copied from the given AggPattern.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class MondrianModel.AggTable

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String newval)

addExclude

public void addExclude(int pos,
                       MondrianModel.AggExclude newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent.


addExclude

public void addExclude(MondrianModel.AggExclude newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent.


removeExclude

public boolean removeExclude(MondrianModel.AggExclude removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found.

Returns:
true if the item was removed (because it was in the list); false if the item was not removed.

removeExclude

public MondrianModel.AggExclude removeExclude(int pos)
Removes the child object at the given position, firing an OLAPChildEvent.

Returns:
The item that was removed.

getExcludes

public java.util.List<MondrianModel.AggExclude> getExcludes()

getChildren

public java.util.List<OLAPObject> getChildren()
Description copied from class: OLAPObject
Returns a read-only unified list of all children of this OLAPObject. If this object doesn't have any children, returns an empty list.

Overrides:
getChildren in class MondrianModel.AggTable

allowsChildren

public boolean allowsChildren()
Description copied from class: OLAPObject
Returns true if this type of OLAPObject can ever return a non-empty list from OLAPObject.getChildren(), and false if getChildren() is always empty.

Overrides:
allowsChildren in class MondrianModel.AggTable

addChild

public void addChild(OLAPObject child)
Description copied from class: OLAPObject
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.

This 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.

Overrides:
addChild in class MondrianModel.AggTable
Parameters:
child - The child to add.

addChild

public void addChild(int index,
                     OLAPObject child)
Description copied from class: OLAPObject
Adds the given child or sets the appropriate property on this OLAPObject, allowing the overall target index to be specified.

This 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.

Overrides:
addChild in class MondrianModel.AggTable
Parameters:
index - The overall index (same index as would be in OLAPObject.getChildren()) at which to add the child.
child - The child to add.

removeChild

public boolean removeChild(OLAPObject child)
Description copied from class: OLAPObject
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.

This method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.

Overrides:
removeChild in class MondrianModel.AggTable
Parameters:
child - The child to remove.


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca