Class PreferenceValidationForStrings

  • All Implemented Interfaces:
    PreferenceDefinition

    public class PreferenceValidationForStrings
    extends PreferenceDefinitionImpl
    Handles the validation of a String, for it not to contain invalid characters.
    Since:
    MicroStrategy Web 8.0.0
    • Constructor Detail

      • PreferenceValidationForStrings

        public PreferenceValidationForStrings()
    • Method Detail

      • validateTransmute

        protected java.lang.String validateTransmute​(java.lang.String value,
                                                     Preferences pref,
                                                     java.lang.Object validationObject)
                                              throws PreferencesException
        Description copied from class: PreferenceDefinitionImpl
        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.
        Overrides:
        validateTransmute in class PreferenceDefinitionImpl
        Returns:
        transmuted preference value
        Throws:
        PreferencesException