com.microstrategy.web.objects.WebThresholds |
![]() |
This interface encapsulates a collection of
WebThreshold
instances,
as well as functions that operate on the collection.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebThreshold | add(String tmpId, WebThreshold template) | ||||||||||
abstract WebThreshold |
add(String tmpId)
Adds a new threshold object with the given temporary identifier.
| ||||||||||
abstract void |
clear()
Removes all threshold instances.
| ||||||||||
abstract WebThresholds |
createCopy()
Returns a
WebThresholds collection that is a copy of the current object. | ||||||||||
abstract Enumeration | elements() | ||||||||||
abstract WebThreshold | get(int index) | ||||||||||
abstract WebThreshold | get(String id) | ||||||||||
abstract boolean |
isModified()
Returns whether the
WebThresholds object is modified or not. | ||||||||||
abstract void |
populate(WebThresholds template)
The populate method will populate the current collection with the contents of the given one.
| ||||||||||
abstract WebThreshold |
remove(String id)
Removes a threshold.
| ||||||||||
abstract void |
reorder(String[] ids)
The array of identifiers define the new relative ordering of thresholds.
| ||||||||||
abstract int | size() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a new threshold object with the given temporary identifier. The identifier is no longer valid once the manipulation is submitted.
tmpId | a temporary id used to refer to the new threshold |
---|
Removes all threshold instances. This is equivalent to invoking
remove(String)
for all threshold identifiers.
Returns a WebThresholds
collection that is a copy of the current object. Note that this copy will
still be aware of its container, but the container will still be attached to the original WebThresholds object.
The primary purpose of this method is to allow the caller to capture the state of the thresholds collection, and then
edit the state without affecting the original collection. Typical usage will see this method being used along with the populate method,
to move the information back from the copy to the original collection.
WebThresholds
collection that is in exactly the same state as the original.
Enumeration
of threshold instances.
index | the index (starting from 0) of the threshold instance in the list |
---|
IllegalArgumentException | thrown if there is no threshold at the given index. |
---|
id | identifier of the threshold instance |
---|
Returns whether the WebThresholds
object is modified or not.
The populate method will populate the current collection with the contents of the given one. This is primarily intended to be used to propagate changes made to a copy obtained via the createCopy method back to the original.
template | The source object whose definition will be copied into the current object. |
---|
Removes a threshold.
id | identifier of threshold to remove. |
---|
The array of identifiers define the new relative ordering of thresholds.
Each identifier pair is subject to
moveByKey(Object, Object)
.
For example, if thresholds "a, b, c, d, e" were reordered with the
parameter array "b, e", we would have "a, c, d, b, e".
ids | array of threshold identifiers in relative order |
---|