Class PreferenceDefinitionMinMax
- java.lang.Object
 - 
- com.microstrategy.web.preferences.PreferenceDefinitionBase
 - 
- com.microstrategy.web.preferences.PreferenceDefinitionImpl
 - 
- com.microstrategy.web.preferences.PreferenceDefinitionMinMax
 
 
 
 
- 
- All Implemented Interfaces:
 PreferenceDefinition
- Direct Known Subclasses:
 PreferenceValidationForMargins,PreferenceValidationForPrintRowsColsPerPage
public class PreferenceDefinitionMinMax extends PreferenceDefinitionImpl
Handles preference checks of minimum and maximum values. The values are optional (specify just one or both), but if specified, they must be numeric and will trigger validation.- Type: integer, real
 - Extra attributes: mn, mx
 
- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_maxprotected java.lang.String_minstatic java.lang.StringAtt_Maxstatic java.lang.StringAtt_Min- 
Fields inherited from class com.microstrategy.web.preferences.PreferenceDefinitionImpl
Att_Class, Att_ClusterPropagate, Att_DescriptionID, Att_Scope, Tag_AllowableValue, Tag_AllowableValues 
- 
Fields inherited from class com.microstrategy.web.preferences.PreferenceDefinitionBase
_allowableValues, _clusterPropagate, _description, _levels, _name, _scope, _type, _value 
- 
Fields inherited from interface com.microstrategy.web.preferences.PreferenceDefinition
TYPE_BOOLEAN, TYPE_DEFAULT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PreferenceDefinitionMinMax() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildXmlAttributes(XMLBuilder builder)Constructs an XML representation of the preference definition.java.lang.StringgetMax()java.lang.StringgetMin()protected booleanisValidMinMax(java.lang.String value)protected voidsetAttributes(org.xml.sax.Attributes attrs, PreferenceLevels group, boolean update)Populates the object with attributes from parsing the definition XML.protected java.lang.StringvalidateTransmute(java.lang.String value, Preferences pref, java.lang.Object validationObject)This method is triggered by callback when setting preference values.- 
Methods inherited from class com.microstrategy.web.preferences.PreferenceDefinitionImpl
setAttributes, toString, validate, validateAllowableValues 
- 
Methods inherited from class com.microstrategy.web.preferences.PreferenceDefinitionBase
clusterPropagate, getAllowableValues, getDescription, getEnumPreferenceLevels, getName, getScope, getType, getValue, setClusterPropagate, setDescription, setEnumPreferenceLevels, setName, setScope, setType, setValue, validateDataType 
 - 
 
 - 
 
- 
- 
Field Detail
- 
Att_Min
public static final java.lang.String Att_Min
- See Also:
 - Constant Field Values
 
 
- 
Att_Max
public static final java.lang.String Att_Max
- See Also:
 - Constant Field Values
 
 
- 
_min
protected java.lang.String _min
 
- 
_max
protected java.lang.String _max
 
 - 
 
- 
Method Detail
- 
validateTransmute
protected java.lang.String validateTransmute(java.lang.String value, Preferences pref, java.lang.Object validationObject) throws PreferencesExceptionDescription copied from class:PreferenceDefinitionImplThis 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.- Overrides:
 validateTransmutein classPreferenceDefinitionImpl- Returns:
 - transmuted preference value
 - Throws:
 PreferencesException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setAttributes
protected void setAttributes(org.xml.sax.Attributes attrs, PreferenceLevels group, boolean update) throws PreferencesExceptionDescription copied from class:PreferenceDefinitionImplPopulates 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.- Overrides:
 setAttributesin classPreferenceDefinitionImpl- Parameters:
 attrs- properties of the definition in XML form.group- used to check the scope of the definition.- Throws:
 PreferencesException- if errors occur during the population.- Since:
 - MicroStrategy Web 9.0.1
 - See Also:
 PreferenceDefinitionBase.setAttributes(Attributes, PreferenceLevels)
 
- 
buildXmlAttributes
protected void buildXmlAttributes(XMLBuilder builder)
Description copied from class:PreferenceDefinitionImplConstructs 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).- Overrides:
 buildXmlAttributesin classPreferenceDefinitionImpl- See Also:
 PreferenceDefinitionBase.buildXmlAttributes(XMLBuilder)
 
- 
getMin
public java.lang.String getMin()
 
- 
getMax
public java.lang.String getMax()
 
- 
isValidMinMax
protected boolean isValidMinMax(java.lang.String value)
 
 - 
 
 -