|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WabitObject
| Method Summary | ||
|---|---|---|
void |
addChild(WabitObject child,
int index)
Adds the given child object to this object. |
|
void |
addWabitListener(WabitListener l)
Adds a listener that will be notified when children are added to or removed from this object, when properties change, and when a transaction starts and ends. |
|
boolean |
allowsChildren()
Returns true if this object may contain children. |
|
void |
begin(java.lang.String message)
Starts a transaction that will pool multiple events into a compound event. |
|
int |
childPositionOffset(java.lang.Class<? extends WabitObject> childType)
Returns the position in the list that would be returned by getChildren() that the first object of type childClass is, or where it would be if there were any children of that type. |
|
CleanupExceptions |
cleanup()
Disconnects this object from any other objects it is listening to, closes any open connections, and performs any other necessary operations to ensure that this object can be discarded. |
|
void |
commit()
Signals the end of a transaction of a compound event. |
|
void |
generateNewUUID()
Sets the UUID of this object to a newly generated UUID. |
|
java.util.List<? extends WabitObject> |
getChildren()
Returns an unmodifiable list of the children in this WabitObject. |
|
|
getChildren(java.lang.Class<T> type)
Returns a list of all children of the given type |
|
java.util.List<WabitObject> |
getDependencies()
Returns a list of all WabitObjects that this Wabit object is
dependent on. |
|
java.lang.String |
getName()
Returns the short name for this object. |
|
WabitObject |
getParent()
Returns the parent of this WabitObject. |
|
java.lang.String |
getUUID()
|
|
boolean |
removeChild(WabitObject child)
Removes the given child object from this object. |
|
void |
removeDependency(WabitObject dependency)
Removes the given object as a dependency of this object. |
|
void |
removeWabitListener(WabitListener l)
Removes a listener that was previously attached to this wabit object. |
|
void |
rollback(java.lang.String message)
Signals the roll back of a transaction. |
|
void |
setName(java.lang.String name)
Sets the name for this object |
|
void |
setParent(WabitObject parent)
Sets the parent of this object to the given object. |
|
void |
setUUID(java.lang.String uuid)
|
|
| Method Detail |
|---|
void addWabitListener(WabitListener l)
l - The listener to add.WabitListener,
WabitSession.runInForeground(Runnable)void removeWabitListener(WabitListener l)
l - The listener to remove.WabitObject getParent()
WabitObject
tree.
void setParent(WabitObject parent)
parent - The new parent of this object.java.util.List<? extends WabitObject> getChildren()
boolean allowsChildren()
childPositionOffset(Class)int childPositionOffset(java.lang.Class<? extends WabitObject> childType)
java.lang.IllegalArgumentException - if the given child class is not valid for
this OLAPObject.
boolean removeChild(WabitObject child)
throws ObjectDependentException,
java.lang.IllegalArgumentException
child - The object to remove as a child of this object.
ObjectDependentException
java.lang.IllegalArgumentException
void addChild(WabitObject child,
int index)
throws java.lang.IllegalArgumentException
child - The object to add as a child of this object.index - The index to add the child to. This cannot be greater than the
number of children in the object of the given type. This is
the position of the child in the list of children of a
specific type. The position of the child is in respect to
children of its type.
java.lang.IllegalArgumentException - If the given child is not a valid child type of the object.@Nullable java.lang.String getName()
void setName(@Nullable
java.lang.String name)
java.lang.String getUUID()
void setUUID(java.lang.String uuid)
void generateNewUUID()
void removeDependency(@Nonnull
WabitObject dependency)
java.util.List<WabitObject> getDependencies()
WabitObjects that this Wabit object is
dependent on. Children of a WabitObject are not dependencies and will not
be returned in this list. If there are no objects this Wabit object is
dependent on an empty list should be returned. These are only the
immediate dependencies of this object. If you want to find the
dependencies of this object's dependencies as well it may be useful to
look at WorkspaceGraphModel to make a full graph of all of the
dependencies.
CleanupExceptions cleanup()
WabitUtils.cleanupWabitObject(WabitObject).
Calling cleanup does not mean the object must be disconnected from the
workspace as all objects will be cleaned up when the session is closing.
The object can also still have other objects dependent on it unlike
removeChild(WabitObject).
void begin(java.lang.String message)
message - Description of the compound event.void commit()
void rollback(java.lang.String message)
message - Reason for the roll back.<T extends WabitObject> java.util.List<T> getChildren(java.lang.Class<T> type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||