|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
addPreference(WebADEPreference preference)
Adds the given preference to the current set, removing the previous one, if found. |
void |
clearPreferences()
Removes all preferences from the current set. |
java.lang.Object |
clone()
see java.lang.Object#clone() |
WebADEPreference |
getPreference(java.lang.String preferenceName)
Returns the corresponding value for the given preference name, or null if not found. |
java.util.List |
getPreferenceNames()
Returns the preference names of the preference set. |
java.util.Properties |
getPreferenceProperties(boolean convertMultiValuesToDelimitedString)
Returns all preferences in the set as name value pairs in a Properties object. |
java.util.Properties |
getPreferenceProperties(boolean convertMultiValuesToDelimitedString,
java.lang.String delimiterString)
Returns all preferences in the set as name value pairs in a Properties object. |
java.util.List |
getPreferences()
Returns the set of preferences. |
java.lang.String |
getPreferenceSetName()
|
java.util.Properties |
getPreferencesProperties()
Returns all preferences in the set as name value pairs in a Properties object. |
void |
removePreference(java.lang.String preferenceName)
Removes the given preference from the current set. |
| Method Detail |
public java.lang.String getPreferenceSetName()
public java.util.List getPreferences()
public java.util.List getPreferenceNames()
public WebADEPreference getPreference(java.lang.String preferenceName)
preferenceName - The unique name of the target preference in the set.
public java.util.Properties getPreferencesProperties()
throws WebADEException
WebADEException - Thrown if any of the WebADEPreference object within the set have
more than one value assigned.
public java.util.Properties getPreferenceProperties(boolean convertMultiValuesToDelimitedString)
throws WebADEException
convertMultiValuesToDelimitedString - Flag to convert multi-value preferences to a single
comma-delimited value in the properties file (if set to true),
or whether to throw an exception (if set to false).
WebADEException - Thrown if any of the WebADEPreference object within the set
have more than one value assigned, unless the
convertMultiValuesToDelimitedString is set to
true.
public java.util.Properties getPreferenceProperties(boolean convertMultiValuesToDelimitedString,
java.lang.String delimiterString)
throws WebADEException
convertMultiValuesToDelimitedString - Flag to convert multi-value preferences to a single delimited
value in the properties file (if set to true), or whether to
throw an exception (if set to false).delimiterString - The string used to delimit the multi-values string. The
default value is a comma.
WebADEException - Thrown if any of the WebADEPreference object within the set
have more than one value assigned, unless the
convertMultiValuesToDelimitedString is set to
true.public void addPreference(WebADEPreference preference)
preference - The target preference.public void removePreference(java.lang.String preferenceName)
preferenceName - The name of the target preference.public void clearPreferences()
public java.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||