Package wt.preference
Interface MultiValuedPreferenceHandler
- All Superinterfaces:
PreferenceValueHandler
PreferenceValueHandler extension to support MultiValuedPreferenceInstance object. This interface
implementation is more towards exchanging the MultiValuedPreferenceInstance objects through loaders and
Export import preference utility.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionThis method is used to provide Database values which can be persisted as per Target system information forMultiValuedPreferenceInstanceobject attributes like VALUEKEY and VALUEVALUE.default StringgetValueKey(MultiValuedPreferenceInstance instance) This method provides an option to parse the information of_MultiValuedPreferenceInstance.getValueKey()to make it more readable or exportable information.default StringgetValueValue(MultiValuedPreferenceInstance instance) This method provides an option to parse the information of_MultiValuedPreferenceInstance.getValueValue()to make it more readable or exportable information.default booleanDetermines if the preference value handler manages more than one key value pair for one preference.Methods inherited from interface wt.preference.PreferenceValueHandler
getEditGuiComponent, getValue, getValue, getValue, getValue, getViewGuiComponent, getViewGuiComponent, initialize, isMultiPreference, isValueChanged, multiPreferences, objectClass, objectToString, process, stringToObject, stringToObject, validate, validate
-
Method Details
-
getValue
This method is used to provide Database values which can be persisted as per Target system information forMultiValuedPreferenceInstanceobject attributes like VALUEKEY and VALUEVALUE. Supported API: true- Parameters:
map- This consists of in-memoryMultiValuedPreferenceInstanceobjects against a predefined key #MV_PREFERENCE_INST_SET- Returns:
- Map of updated instances with database storing values. Key should be #MV_PREFERENCE_INST_SET
- Throws:
WTException
-
getValueKey
This method provides an option to parse the information of_MultiValuedPreferenceInstance.getValueKey()to make it more readable or exportable information. Supported API: true
This has default implementation to provide plain value present in database against VALUEKEY column.- Parameters:
instance- -MultiValuedPreferenceInstanceobject- Returns:
- - String value which is parsed information of
_MultiValuedPreferenceInstance.getValueKey(). - Throws:
WTException
-
getValueValue
This method provides an option to parse the information of_MultiValuedPreferenceInstance.getValueValue()to make it more readable or exportable information. Supported API: true
This has default implementation to provide plain value present in database against VALUEVALUE column.- Parameters:
instance-MultiValuedPreferenceInstanceobject- Returns:
- - String value which is parsed information of
_MultiValuedPreferenceInstance.getValueValue(). - Throws:
WTException
-
isMultiMapPreference
default boolean isMultiMapPreference()Determines if the preference value handler manages more than one key value pair for one preference. Note: Do not override this API
Supported API: true- Specified by:
isMultiMapPreferencein interfacePreferenceValueHandler- Returns:
- boolean
-