ca.sqlpower.architect.olap
Class OLAPChildEvent

java.lang.Object
  extended by ca.sqlpower.architect.olap.OLAPChildEvent

public class OLAPChildEvent
extends java.lang.Object

An event object that describes adding or removing a single child of the given type to/from a parent.


Constructor Summary
OLAPChildEvent(OLAPObject source, java.lang.Class<? extends OLAPObject> childType, OLAPObject child, int index)
          Creates a new event object that describes adding or removing a single child of the given type to/from a parent.
 
Method Summary
 OLAPObject getChild()
           
 java.lang.Class<? extends OLAPObject> getChildType()
           
 int getIndex()
           
 OLAPObject getSource()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OLAPChildEvent

public OLAPChildEvent(OLAPObject source,
                      java.lang.Class<? extends OLAPObject> childType,
                      OLAPObject child,
                      int index)
Creates a new event object that describes adding or removing a single child of the given type to/from a parent.

Parameters:
source - The parent that gained or lost a child.
childType - The child type for which the parent gained or lost a child (OLAP Objects support multiple child types).
child - The child that was added or removed.
index - The index of the child that was added or removed (this is the overall index in the parent, not the index within one child type).
Method Detail

getSource

public OLAPObject getSource()

getChildType

public java.lang.Class<? extends OLAPObject> getChildType()

getChild

public OLAPObject getChild()

getIndex

public int getIndex()

toString

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


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