com.microstrategy.web.objects.WebDrillActions |
The WebDrillActions interface represents a collection of drill actions.
The collection holds an ordered sequence of drill actions for a WebDrillInstance
.
This object cannot be directly instantiated, and can be obtained from WebDrillInstance
or WebDrillPath
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebDrillAction |
add(int drillType)
Creates a new
WebDrillAction object of the type passed as parameter, adds it to the end of the collection of drill action, and returns it. | ||||||||||
abstract void |
clear()
Removes all drill actions from the collection.
| ||||||||||
abstract Enumeration |
elements()
Returns a java.util.Enumeration which can be used to iterate through the list
of drill actions in the collection.
| ||||||||||
abstract WebDrillAction |
get(int index)
Returns the
WebDrillAction object at the given index. | ||||||||||
abstract boolean |
isEmpty()
Returns true if there are no drill action in this collection, false if there are one or more
drill actions in the collection.
| ||||||||||
abstract WebDrillAction |
remove(int index)
Removes the
WebDrillAction object with the given index from the collection,
and returns the removed element. | ||||||||||
abstract boolean |
remove(WebDrillAction action)
Removes the given
WebDrillAction object from the collection. | ||||||||||
abstract int |
size()
Returns the number of drill actions currently in the collection.
|
Creates a new WebDrillAction
object of the type passed as parameter, adds it to the end of the collection of drill action, and returns it.
drillType | The type of drill action to be added. Possible drill types are listed in EnumDSSXMLDrillType |
---|
WebDrillAction
object added.UnsupportedOperationException | If the drill type passed is not supported. |
---|
Removes all drill actions from the collection.
Returns a java.util.Enumeration which can be used to iterate through the list of drill actions in the collection. Note that this is the only way to iterate through the collection.
Returns the WebDrillAction
object at the given index.
index | The index of the drill action in the collection. |
---|
WebDrillAction
object corresponding to the given index in the collection.IndexOutOfBoundsException | Thrown if the given index is out of the bounds of the collection. |
---|---|
IndexOutOfBoundsException | if the index passed is negative or out of bounds. |
Returns true if there are no drill action in this collection, false if there are one or more drill actions in the collection.
Removes the WebDrillAction
object with the given index from the collection,
and returns the removed element.
index | The index of the drill action in the collection to remove. |
---|
WebDrillAction
object that has been removed from the collection..IndexOutOfBoundsException | Thrown if the given index is out of the bounds of the collection. |
---|
Removes the given WebDrillAction
object from the collection. Returns the removed drill action.
action | The WebDrillAction object to remove from the collection. |
---|
WebDrillAction
object that is removed.IllegalArgumentException | Thrown if the drill action does not exist in the collection. |
---|
Returns the number of drill actions currently in the collection.