Package com.microstrategy.web.objects
Interface WebDimty
-
public interface WebDimtyThe 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,WebMDSecurityFilterorWebNodeobjects.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebDimtyUnitadd(int unitType)Adds a newWebDimtyUnitobject, with the given unit type, to the collection, at the end of the collection.WebDimtyUnitadd(int unitType, int beforeKey)Adds a newWebDimtyUnitobject, with the given unit type, to the collection, at the given position.voidadd(WebDimtyUnit object)Adds a new WebDimtyUnit object.voidadd(WebDimtyUnit object, int beforeKey)Adds a new WebDimtyUnit object.WebDimtyUnitadd(WebObjectInfo object)Adds a newWebDimtyUnitobject, where the dimty unit type is determined by the object passed in, to the collection, at the end of the collection.WebDimtyUnitadd(WebObjectInfo object, int beforeKey)Adds a newWebDimtyUnitobject, where the dimty unit type is determined by the object passed in, to the collection before the object with the given key.voidclear()Removes allWebDimtyUnitobjects from this collection.booleancontainsKey(int key)Returns true if aWebDimtyUnitwith the given key exists in the collection, false if it does not.java.util.Enumerationelements()Returns a java.util.Enumeration which can be used to iterate through the list ofWebDimtyUnits in the collection.WebDimtyUnitget(int index)Returns theWebDimtyUnitobject in the collection with the given index.WebDimtyUnitgetAvailableUnit(int unitType)Returns a standalone dimty unit of specified unit type.booleangetCanContinue()Returns the current value of the CanContinue(cct) property.WebDisplayUnitsgetChildUnits()Returns the WebDisplayUnits collection containing the WebDimtyUnits.booleangetFilterRest()Returns the current setting of the FilterRest(fr) option.WebDimtyUnitgetItemByKey(int key)Returns theWebDimtyUnitobject in the collection with the given key.booleanisEmpty()Returns whether the collection ofWebDimtyUnits is empty.intkeyOf(WebDimtyUnit dimtyUnit)Returns the key of the givenWebDimtyUnitobject in the collection.voidremove(int index)Removes theWebDimtyUnitobject in the collection with the given index.voidremove(WebDimtyUnit dimtyUnit)Removes the given dimensionality unit from the dimty collection, if it is a member.voidremoveItemByKey(int key)Removes the object with the given key from the collection.voidsetCanContinue(boolean canContinue)Sets the current value of the CanContinue(cct) property.voidsetFilterRest(boolean filterRest)Sets the FilterRest(fr) option.intsize()Returns the number of dimensionality units in this collection.
-
-
-
Method Detail
-
getCanContinue
boolean getCanContinue()
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 current value of the CanContinue(cct) option.
- See Also:
setCanContinue(boolean)
-
setCanContinue
void setCanContinue(boolean canContinue)
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.- Parameters:
canContinue- The new value of the CanContinue property.- See Also:
getCanContinue()
-
getFilterRest
boolean getFilterRest()
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 current value of the FilterRest property.
- See Also:
setFilterRest(boolean)
-
setFilterRest
void setFilterRest(boolean filterRest)
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.- Parameters:
filterRest- The new value for the FilterRest property.- See Also:
getFilterRest()
-
add
WebDimtyUnit add(int unitType) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Adds a newWebDimtyUnitobject, with the given unit type, to the collection, at the end of the collection.- Parameters:
unitType- The type of dimensionality unit to create, fromEnumDSSXMLDimtyUnitType.- Returns:
- The newly created
WebDimtyUnitobject. - Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.java.lang.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.
-
add
WebDimtyUnit add(int unitType, int beforeKey) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Adds a newWebDimtyUnitobject, with the given unit type, to the collection, at the given position.- Parameters:
unitType- The type of dimensionality unit to create, fromEnumDSSXMLDimtyUnitType.beforeKey- The key of theWebDimtyUnitobject which the new one should be placed before in the collection.- Returns:
- The newly created
WebDimtyUnitobject. - Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.java.lang.IllegalArgumentException- Thrown if noWebDimtyUnitobject in the collection with key beforeKey could be found, or if the unit type is invalid without a target.
-
add
WebDimtyUnit add(WebObjectInfo object) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Adds a newWebDimtyUnitobject, where the dimty unit type is determined by the object passed in, to the collection, at the end of the collection.- Parameters:
object- The object which the dimensionality unit refers to, of type attribute or dimension.- Returns:
- The newly created
WebDimtyUnitobject. - Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.java.lang.IllegalArgumentException- Thrown if the given object cannot be the subject of a dimensionality unit.
-
add
WebDimtyUnit add(WebObjectInfo object, int beforeKey) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Adds a newWebDimtyUnitobject, where the dimty unit type is determined by the object passed in, to the collection before the object with the given key.- Parameters:
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 newWebDimtyUnitobject will be placed before.- Returns:
- The newly created
WebDimtyUnitobject. - Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.java.lang.IllegalArgumentException- Thrown if the given object cannot be the subject of a dimensionality unit, or if the beforeKey does not exist.
-
add
void add(WebDimtyUnit object, int beforeKey) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Adds a new WebDimtyUnit object. For ReportLevel, it class type is WebDymtyUnit.- Parameters:
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.- Throws:
java.lang.IllegalArgumentException- Thrown if the given object cannot be the subject of a dimensionality unit, or if the beforeKey does not exist.java.lang.UnsupportedOperationException- Thrown if the collection is read-only.
-
add
void add(WebDimtyUnit object) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Adds a new WebDimtyUnit object. For ReportLevel, it class type is WebDymtyUnit.- Parameters:
object- The object which the dimensionality unit refers to, of type attribute or dimension.- Throws:
java.lang.IllegalArgumentException- Thrown if the given object cannot be the subject of a dimensionality unit, or if the beforeKey does not exist.java.lang.UnsupportedOperationException- Thrown if the collection is read-only.
-
get
WebDimtyUnit get(int index) throws java.lang.IndexOutOfBoundsException
Returns theWebDimtyUnitobject in the collection with the given index.- Parameters:
index- The index of the object to return from the collection.- Returns:
- The
WebDimtyUnitobject corresponding to the given index. - Throws:
java.lang.IndexOutOfBoundsException- Thrown if the index is not in the bounds of the collection.
-
getItemByKey
WebDimtyUnit getItemByKey(int key) throws java.lang.IllegalArgumentException
Returns theWebDimtyUnitobject in the collection with the given key.- Parameters:
key- The key of the object to obtain from the collection.- Returns:
- The
WebDimtyUnitobject corresponding to the given key. - Throws:
java.lang.IllegalArgumentException- Thrown if the key is not found in the collection.
-
remove
void remove(int index) throws java.lang.UnsupportedOperationException, java.lang.IndexOutOfBoundsExceptionRemoves theWebDimtyUnitobject in the collection with the given index.- Parameters:
index- The index of the object to remove from the collection.- Throws:
java.lang.UnsupportedOperationException- Signals that the collection is marked as read-only.java.lang.IndexOutOfBoundsException- Thrown if the index is not in the bounds of the collection.
-
removeItemByKey
void removeItemByKey(int key) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentExceptionRemoves the object with the given key from the collection.- Parameters:
key- The key of the dimensionality unit to remove from the collection.- Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.java.lang.IllegalArgumentException- Thrown if the given key is not found in the collection.
-
remove
void remove(WebDimtyUnit dimtyUnit) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
Removes the given dimensionality unit from the dimty collection, if it is a member.- Parameters:
dimtyUnit- AWebDimtyUnitobject to be removed from the collection.- Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.java.lang.IllegalArgumentException- Thrown if the givenWebDimtyUnitobject is not in the collection.
-
clear
void clear() throws java.lang.UnsupportedOperationExceptionRemoves allWebDimtyUnitobjects from this collection.- Throws:
java.lang.UnsupportedOperationException- Thrown if the collection is read-only.
-
isEmpty
boolean isEmpty()
Returns whether the collection ofWebDimtyUnits is empty.- Returns:
- true if the collection is empty, false if it is not.
-
size
int size()
Returns the number of dimensionality units in this collection.- Returns:
- The number of
WebDimtyUnits in the WebDimty object.
-
containsKey
boolean containsKey(int key)
Returns true if aWebDimtyUnitwith the given key exists in the collection, false if it does not.- Parameters:
key- The key whose existence we need to verify.- Returns:
- True if the given key exists in the collection, false if it does not.
-
keyOf
int keyOf(WebDimtyUnit dimtyUnit) throws java.lang.IllegalArgumentException
Returns the key of the givenWebDimtyUnitobject in the collection.- Parameters:
dimtyUnit- TheWebDimtyUnitobject to find.- Returns:
- The key of the given object.
- Throws:
java.lang.IllegalArgumentException- Thrown if the object is not found in the collection.
-
elements
java.util.Enumeration elements()
Returns a java.util.Enumeration which can be used to iterate through the list ofWebDimtyUnits in the collection.- Returns:
- An Enumeration which allows iteration through the collection.
-
getChildUnits
WebDisplayUnits getChildUnits()
Returns the WebDisplayUnits collection containing the WebDimtyUnits.- Returns:
- the child WebDisplayUnits collection
- Since:
- MicroStrategy Web 9.0.0
-
getAvailableUnit
WebDimtyUnit getAvailableUnit(int unitType) throws java.lang.IllegalArgumentException
Returns a standalone dimty unit of specified unit type. Unit type can NOT beEnumDSSXMLDimtyUnitType.DssXmlDimtyUnitTypeAttributeorEnumDSSXMLDimtyUnitType.DssXmlDimtyUnitTypeDimension. The returned unit will not be added into dimty units collection of this dimty, no matter it was in the collection or not.- Parameters:
unitType-- Throws:
java.lang.IllegalArgumentException- Since:
- MicroStrategy Web 9.0.0
-
-