java.lang.Object | |
↳ | com.microstrategy.web.preferences.PreferenceLevels |
![]() |
PreferenceLevel objects are typically grouped into application context groups. EnumPreferenceLevels is a factory for various groupings used in our framework. This abstract class generalizes the group operations without any dependence to any specific groupings. The convention of the array ordering is from the coarsest to finest level. In general, lookups will begin from a designated level, and if not found, will defer to its coarser parent level.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PreferenceLevels(PreferenceLevel[] levels)
Constructor for PreferenceLevels.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PreferenceLevel |
decode(int i)
Returns the PreferenceLevel at a given array position.
| ||||||||||
PreferenceLevel | getChild(PreferenceLevel lvl) | ||||||||||
PreferenceLevel |
getLast()
Returns the last PreferenceLevel object in the grouping.
| ||||||||||
final PreferenceLevel[] |
getLevels()
Returns an array of the PreferenceLevel grouping.
| ||||||||||
PreferenceLevel | getParent(PreferenceLevel lvl) | ||||||||||
PreferenceLevel |
getRoot()
Returns the first PreferenceLevel object in the grouping.
| ||||||||||
int |
indexOf(PreferenceLevel lvl)
Locates the position of the given PreferenceLevel in
the PreferenceLevels array group.
| ||||||||||
boolean |
isOutOfScope(PreferenceLevel scopeBoundary, PreferenceLevel received)
This is to check to see if a received PreferenceLevel is within
the scope of some defined PreferenceLevel boundary.
| ||||||||||
PreferenceLevel |
parse(String label)
Returns the PreferenceLevel from a label.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructor for PreferenceLevels.
MSTRUncheckedException |
---|
Returns the PreferenceLevel at a given array position.
i | Index position. |
---|
Returns an array of the PreferenceLevel grouping. The order of this grouping is important - the convention adopted here treats those ordered earlier in the array as more generic, while those further up the array as more specific. This affects the organization of default values.
Locates the position of the given PreferenceLevel in the PreferenceLevels array group.
lvl | The PreferenceLevel. |
---|
This is to check to see if a received PreferenceLevel is within the scope of some defined PreferenceLevel boundary.
IllegalArgumentException |
---|
Returns the PreferenceLevel from a label.
label | Formal string description of the label. |
---|
IllegalArgumentException |
---|