Package com.microstrategy.web.objects
Interface WebDrillActions
- 
 public interface WebDrillActionsThe WebDrillActions interface represents a collection of drill actions. The collection holds an ordered sequence of drill actions for aWebDrillInstance. This object cannot be directly instantiated, and can be obtained fromWebDrillInstanceorWebDrillPath.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WebDrillActionadd(int drillType)Creates a newWebDrillActionobject of the type passed as parameter, adds it to the end of the collection of drill action, and returns it.voidclear()Removes all drill actions from the collection.java.util.Enumerationelements()Returns a java.util.Enumeration which can be used to iterate through the list of drill actions in the collection.WebDrillActionget(int index)Returns theWebDrillActionobject at the given index.booleanisEmpty()Returns true if there are no drill action in this collection, false if there are one or more drill actions in the collection.WebDrillActionremove(int index)Removes theWebDrillActionobject with the given index from the collection, and returns the removed element.booleanremove(WebDrillAction action)Removes the givenWebDrillActionobject from the collection.intsize()Returns the number of drill actions currently in the collection.
 
- 
- 
- 
Method Detail- 
addWebDrillAction add(int drillType) throws java.lang.UnsupportedOperationException Creates a newWebDrillActionobject of the type passed as parameter, adds it to the end of the collection of drill action, and returns it.- Parameters:
- drillType- The type of drill action to be added. Possible drill types are listed in- EnumDSSXMLDrillType
- Returns:
- The new WebDrillActionobject added.
- Throws:
- java.lang.UnsupportedOperationException- If the drill type passed is not supported.
 
 - 
getWebDrillAction get(int index) throws java.lang.IndexOutOfBoundsException Returns theWebDrillActionobject at the given index.- Parameters:
- index- The index of the drill action in the collection.
- Returns:
- The WebDrillActionobject corresponding to the given index in the collection.
- Throws:
- java.lang.IndexOutOfBoundsException- Thrown if the given index is out of the bounds of the collection.
- java.lang.IndexOutOfBoundsException- if the index passed is negative or out of bounds.
 
 - 
removeWebDrillAction remove(int index) throws java.lang.IndexOutOfBoundsException Removes theWebDrillActionobject with the given index from the collection, and returns the removed element.- Parameters:
- index- The index of the drill action in the collection to remove.
- Returns:
- The WebDrillActionobject that has been removed from the collection..
- Throws:
- java.lang.IndexOutOfBoundsException- Thrown if the given index is out of the bounds of the collection.
 
 - 
removeboolean remove(WebDrillAction action) throws java.lang.IllegalArgumentException Removes the givenWebDrillActionobject from the collection. Returns the removed drill action.- Parameters:
- action- The- WebDrillActionobject to remove from the collection.
- Returns:
- The WebDrillActionobject that is removed.
- Throws:
- java.lang.IllegalArgumentException- Thrown if the drill action does not exist in the collection.
 
 - 
clearvoid clear() Removes all drill actions from the collection.
 - 
isEmptyboolean isEmpty() Returns true if there are no drill action in this collection, false if there are one or more drill actions in the collection.- Returns:
- Whether the collection is empty.
 
 - 
sizeint size() Returns the number of drill actions currently in the collection.- Returns:
- The current number of drill action in the collection.
 
 - 
elementsjava.util.Enumeration elements() 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:
- An Enumeration which allows iteration through the collection.
 
 
- 
 
-