org.apache.pluto.om.common
Interface PreferenceSetCtrl

All Superinterfaces:
Controller

public interface PreferenceSetCtrl
extends Controller

This interface provides access to change a set of Preference objects.

This interface defines the controller as known from the MVC pattern. Its purpose is to provide write access to the data stored in the model.


Method Summary
 Preference add(java.lang.String name, java.util.List values)
          Creates a new preference and adds it to the set The return value cannot be NULL.
 void remove(Preference preference)
          Removes the given preference from the set
 Preference remove(java.lang.String name)
          Removes the preference with the given name from the set The return value may be NULL.
 

Method Detail

add

Preference add(java.lang.String name,
               java.util.List values)
Creates a new preference and adds it to the set The return value cannot be NULL.

Parameters:
name - the name of the new preference
values - the values of the new preference
Returns:
the new preference

remove

Preference remove(java.lang.String name)
Removes the preference with the given name from the set The return value may be NULL.

Parameters:
name - the name of the preference to be removed
Returns:
the removed preference

remove

void remove(Preference preference)
Removes the given preference from the set

Parameters:
preference - the preference to be removed