| java.lang.Object | ||
| ↳ | com.microstrategy.web.preferences.PreferenceDefinitionBase | |
| ↳ | com.microstrategy.web.preferences.PreferenceDefinitionImpl | |
This class encapsulates the definition of a preference. Most definitions
will simply use this implementation as the default. Custom definitions
may extend the PreferenceDefinitionBase directly, or make use of predefined
overrides offered by this class. Subclasses that override
setAttributes(Attributes, PreferenceLevels),
and buildXmlAttributes(XMLBuilder) should make the appropriate
super call back to this class to handle the base attributes.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | Att_Class | ||||||||||
| String | Att_ClusterPropagate | ||||||||||
| String | Att_DescriptionID | ||||||||||
| String | Att_Scope | ||||||||||
| String | Tag_AllowableValue | ||||||||||
| String | Tag_AllowableValues | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.microstrategy.web.preferences.PreferenceDefinition
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.preferences.PreferenceDefinitionBase
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PreferenceDefinitionImpl(String name, PreferenceLevels lvls) | |||||||||||
|
PreferenceDefinitionImpl()
Constructor for creating PreferenceDefinition objects from XML parsing.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | toString() | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
buildXmlAttributes(XMLBuilder builder)
Constructs an XML representation of the preference definition.
| ||||||||||
| void |
setAttributes(Attributes attrs, PreferenceLevels group, boolean update)
Populates the object with attributes from parsing the definition XML.
| ||||||||||
| void |
setAttributes(Attributes attrs, PreferenceLevels group)
Populates the object with attributes from parsing the definition XML.
| ||||||||||
| void |
validate(String value, Preferences pref, Object validationObject)
This method is deprecated.
replaced by
validateTransmute(String, Preferences, Object)
| ||||||||||
| void | validateAllowableValues(String value, Preferences pref, Object validationObject) | ||||||||||
| String |
validateTransmute(String value, Preferences pref, Object validationObject)
This method is triggered by callback when setting preference values.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.preferences.PreferenceDefinitionBase
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.web.preferences.PreferenceDefinition
| |||||||||||
| MSTRUncheckedException |
|---|
Constructor for creating PreferenceDefinition objects from XML parsing.
Constructs an XML representation of the preference definition. Persists the following attributes: name, value, description, type, scope, and the implementation class of PreferenceDefinition (omitted if PreferenceDefinitionImpl).
Populates the object with attributes from parsing the definition XML. The attributes populated by PreferenceDefinitionImpl are as follows: name, value, description, type, scope, and the preference levels grouping.
| attrs | properties of the definition in XML form. |
|---|---|
| group | used to check the scope of the definition. |
| PreferencesException | if errors occur during the population. |
|---|
Populates the object with attributes from parsing the definition XML. The attributes populated by PreferenceDefinitionImpl are as follows: name, value, description, type, scope, and the preference levels grouping. This method will call the setAttributes method with the update as false
| attrs | properties of the definition in XML form. |
|---|---|
| group | used to check the scope of the definition. |
| PreferencesException | if errors occur during the population. |
|---|
This method is deprecated.
replaced by validateTransmute(String, Preferences, Object)
This method is triggered by callback when setting preference values. By default, this method doesn't do anything.
| PreferencesException |
|---|
| PreferencesException |
|---|
This method is triggered by callback when setting preference values. By default, this method doesn't do anything. The returned value will be used to set the preference value - this facilitates preprocessing such as trimming strings, or date time reformating.
| PreferencesException |
|---|