com.microstrategy.web.objects.WebDimty |
The WebDimty object represents a dimensionality object. A dimensionality
object is a collection of one or more dimensionality unit
(WebDimtyUnit
) objects. This collection is indexed and has keys
which can be used to refer to specific dimty unit objects.
This object is primarily used in answering level prompts and building
expressions such as in security filter. It cannot be directly instantiated,
and must be obtained from the WebPrompt
, WebMDSecurityFilter
or WebNode
objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebDimtyUnit |
add(int unitType, int beforeKey)
Adds a new
WebDimtyUnit object, with the given unit type, to the collection, at the given
position. | ||||||||||
abstract WebDimtyUnit |
add(int unitType)
Adds a new
WebDimtyUnit object, with the given unit type, to the collection, at the
end of the collection. | ||||||||||
abstract WebDimtyUnit |
add(WebObjectInfo object, int beforeKey)
Adds a new
WebDimtyUnit object, where the dimty unit type is determined
by the object passed in, to the collection before the object with the given key. | ||||||||||
abstract WebDimtyUnit |
add(WebObjectInfo object)
Adds a new
WebDimtyUnit object, where the dimty unit type is determined
by the object passed in, to the collection, at the end of the collection. | ||||||||||
abstract void |
clear()
Removes all
WebDimtyUnit objects from this collection. | ||||||||||
abstract boolean |
containsKey(int key)
Returns true if a
WebDimtyUnit with the given key exists in the collection, false
if it does not. | ||||||||||
abstract Enumeration |
elements()
Returns a java.util.Enumeration which can be used to iterate through the list
of
WebDimtyUnit s in the collection. | ||||||||||
abstract WebDimtyUnit |
get(int index)
Returns the
WebDimtyUnit object in the collection with the given index. | ||||||||||
abstract WebDimtyUnit |
getAvailableUnit(int unitType)
Returns a standalone dimty unit of specified unit type.
| ||||||||||
abstract boolean |
getCanContinue()
Returns the current value of the CanContinue(cct) property.
| ||||||||||
abstract WebDisplayUnits |
getChildUnits()
Returns the WebDisplayUnits collection containing the WebDimtyUnits.
| ||||||||||
abstract boolean |
getFilterRest()
Returns the current setting of the FilterRest(fr) option.
| ||||||||||
abstract WebDimtyUnit |
getItemByKey(int key)
Returns the
WebDimtyUnit object in the collection with the given key. | ||||||||||
abstract boolean |
isEmpty()
Returns whether the collection of
WebDimtyUnit s is empty. | ||||||||||
abstract int |
keyOf(WebDimtyUnit dimtyUnit)
Returns the key of the given
WebDimtyUnit object in the collection. | ||||||||||
abstract void |
remove(WebDimtyUnit dimtyUnit)
Removes the given dimensionality unit from the dimty collection, if it is a member.
| ||||||||||
abstract void |
remove(int index)
Removes the
WebDimtyUnit object in the collection with the given index. | ||||||||||
abstract void |
removeItemByKey(int key)
Removes the object with the given key from the collection.
| ||||||||||
abstract void |
setCanContinue(boolean canContinue)
Sets the current value of the CanContinue(cct) property.
| ||||||||||
abstract void |
setFilterRest(boolean filterRest)
Sets the FilterRest(fr) option.
| ||||||||||
abstract int |
size()
Returns the number of dimensionality units in this collection.
|
Adds a new WebDimtyUnit
object, with the given unit type, to the collection, at the given
position.
unitType | The type of dimensionality unit to create, from EnumDSSXMLDimtyUnitType . |
---|---|
beforeKey | The key of the WebDimtyUnit object which the new one should be placed
before in the collection. |
WebDimtyUnit
object.UnsupportedOperationException | Thrown if the collection is read-only. |
---|---|
IllegalArgumentException | Thrown if no WebDimtyUnit object in the collection
with key beforeKey could be found, or if the unit type is invalid without a target.
|
Adds a new WebDimtyUnit
object, with the given unit type, to the collection, at the
end of the collection.
unitType | The type of dimensionality unit to create, from EnumDSSXMLDimtyUnitType . |
---|
WebDimtyUnit
object.UnsupportedOperationException | Thrown if the collection is read-only. |
---|---|
IllegalArgumentException | Thrown if the given unit type is attribute or dimension, which should have the object being referred to as one of the arguments to add. |
Adds a new WebDimtyUnit
object, where the dimty unit type is determined
by the object passed in, to the collection before the object with the given key.
object | The object which the dimensionality unit refers to, of type attribute or dimension. |
---|---|
beforeKey | The key of the object in the collection which the new WebDimtyUnit object
will be placed before. |
WebDimtyUnit
object.UnsupportedOperationException | Thrown if the collection is read-only. |
---|---|
IllegalArgumentException | Thrown if the given object cannot be the subject of a dimensionality unit, or if the beforeKey does not exist. |
Adds a new WebDimtyUnit
object, where the dimty unit type is determined
by the object passed in, to the collection, at the end of the collection.
object | The object which the dimensionality unit refers to, of type attribute or dimension. |
---|
WebDimtyUnit
object.UnsupportedOperationException | Thrown if the collection is read-only. |
---|---|
IllegalArgumentException | Thrown if the given object cannot be the subject of a dimensionality unit. |
Removes all WebDimtyUnit
objects from this collection.
UnsupportedOperationException | Thrown if the collection is read-only. |
---|
Returns true if a WebDimtyUnit
with the given key exists in the collection, false
if it does not.
key | The key whose existence we need to verify. |
---|
Returns a java.util.Enumeration which can be used to iterate through the list
of WebDimtyUnit
s in the collection.
Returns the WebDimtyUnit
object in the collection with the given index.
index | The index of the object to return from the collection. |
---|
WebDimtyUnit
object corresponding to the given index.IndexOutOfBoundsException | Thrown if the index is not in the bounds of the collection. |
---|
Returns a standalone dimty unit of specified unit type. Unit type can NOT be DssXmlDimtyUnitTypeAttribute
or
DssXmlDimtyUnitTypeDimension
. The returned unit will not be added into dimty units collection
of this dimty, no matter it was in the collection or not.
IllegalArgumentException | |
IllegalArgumentException |
Returns the current value of the CanContinue(cct) property. This property is used to indicate whether or not the environment that uses a metric with this dimensionality is allowed to extend the dimensionality by (in effect) adding additional units to the dimensionality.
The default value of this flag is true.
Returns the WebDisplayUnits collection containing the WebDimtyUnits.
Returns the current setting of the FilterRest(fr) option. If this property is true, then any attribute found in the filter, which does not appear in this dimensionality, is (in effect) automatically added to the dimensionality.
The default value of this property is true.
Returns the WebDimtyUnit
object in the collection with the given key.
key | The key of the object to obtain from the collection. |
---|
WebDimtyUnit
object corresponding to the given key.IllegalArgumentException | Thrown if the key is not found in the collection. |
---|
Returns whether the collection of WebDimtyUnit
s is empty.
Returns the key of the given WebDimtyUnit
object in the collection.
dimtyUnit | The WebDimtyUnit object to find. |
---|
IllegalArgumentException | Thrown if the object is not found in the collection. |
---|
Removes the given dimensionality unit from the dimty collection, if it is a member.
dimtyUnit | A WebDimtyUnit object to be removed from the collection. |
---|
UnsupportedOperationException | Thrown if the collection is read-only. |
---|---|
IllegalArgumentException | Thrown if the given WebDimtyUnit object
is not in the collection.
|
Removes the WebDimtyUnit
object in the collection with the given index.
index | The index of the object to remove from the collection. |
---|
UnsupportedOperationException | Signals that the collection is marked as read-only. |
---|---|
IndexOutOfBoundsException | Thrown if the index is not in the bounds of the collection. |
Removes the object with the given key from the collection.
key | The key of the dimensionality unit to remove from the collection. |
---|
UnsupportedOperationException | Thrown if the collection is read-only. |
---|---|
IllegalArgumentException | Thrown if the given key is not found in the collection. |
Sets the current value of the CanContinue(cct) property. This property is used to indicate whether or not the environment that uses a metric with this dimensionality is allowed to extend the dimensionality by (in effect) adding additional units to the dimensionality.
canContinue | The new value of the CanContinue property. |
---|
Sets the FilterRest(fr) option. If this property is true, then any attribute found in the filter, which does not appear in this dimensionality, is (in effect) automatically added to the dimensionality.
filterRest | The new value for the FilterRest property. |
---|
Returns the number of dimensionality units in this collection.
WebDimtyUnit
s in the WebDimty object.