|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.AbstractPreference
ca.bc.gov.webade.PreferenceSet
| Constructor Summary | |
PreferenceSet(PreferenceSet prefSet)
Clone Constructor. |
|
PreferenceSet(java.lang.String name)
Creates a new preference set with the given set name. |
|
| Method Summary | |
void |
addPreference(Preference pref)
Adds the given preference to the current set. |
static PreferenceSet |
convertToPreferenceSet(WebADEPreferenceSet prefs)
Converts the given WebADEPreferenceSet to a PreferenceSet, with a null type and sub-type. |
static PreferenceSet |
convertToPreferenceSet(WebADEPreferenceType prefType,
java.lang.String prefSubType,
WebADEPreferenceSet prefs)
Converts the given WebADEPreferenceSet to a PreferenceSet, with the given type and sub-type. |
static WebADEPreferenceSet |
convertToWebADEPreferenceSet(PreferenceSet prefSet)
|
boolean |
equals(java.lang.Object obj)
|
Preference |
getPreference(java.lang.String preferenceName)
Returns the corresponding value for the given preference name, or null if not found. |
java.util.Iterator |
getPreferenceNames()
Returns the preference names of the preference set. |
java.lang.String |
getPreferenceSetName()
|
java.util.Properties |
getPreferencesProperties()
Returns all preferences in the set as name value pairs in a Properties object. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class ca.bc.gov.webade.AbstractPreference |
getApplicationCode, getEuserId, getPreferenceSubType, getPreferenceType, setPreferenceSubType, setPreferenceType |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PreferenceSet(java.lang.String name)
name - The name of the preference set.public PreferenceSet(PreferenceSet prefSet)
prefSet - The preference set to clone.| Method Detail |
public static final PreferenceSet convertToPreferenceSet(WebADEPreferenceSet prefs)
prefs - The WebADEPreferences object to convert.
public static final PreferenceSet convertToPreferenceSet(WebADEPreferenceType prefType,
java.lang.String prefSubType,
WebADEPreferenceSet prefs)
prefType - The target preference type.prefSubType - The target preference sub type.prefs - The WebADEPreferences object to convert.
public static final WebADEPreferenceSet convertToWebADEPreferenceSet(PreferenceSet prefSet)
prefSet - The Preferences object to convert.
public java.lang.String getPreferenceSetName()
public java.util.Iterator getPreferenceNames()
public Preference 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 Preference object within the set
have more than one value assigned.public final void addPreference(Preference pref)
pref - The target preference.public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public java.lang.String toString()
Object.toString()public int hashCode()
Object.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||