org.dvb.user
Class Facility

java.lang.Object
  extended byorg.dvb.user.Facility

public class Facility
extends java.lang.Object

A facility maps a preference's name to a single value or to an array of values. A facility enables an application to define the list of values supported for a specified preference. For example, if an application is available in English or French then it can create a Facility ("User Language", {"English", "French"}). When the application will retrieve the "User Language" from the general preference it will specify the associated facility in order to get a Preference which will contain a set a values compatible with those supported by the application.


Constructor Summary
Facility(java.lang.String preference, java.lang.String value)
          Creates a Facility with a single value.
Facility(java.lang.String preference, java.lang.String[] values)
          Creates a Facility with a set of values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Facility

public Facility(java.lang.String preference,
                java.lang.String value)
Creates a Facility with a single value. This facility can be used by an application to retrieve a preference compatible with its capabilities.

Parameters:
preference - a String representing the name of the preference.
value - a String representing the value of the preference.

Facility

public Facility(java.lang.String preference,
                java.lang.String[] values)
Creates a Facility with a set of values. This facility can be used by an application to retrieve a preference compatible with its capabilities.

Parameters:
preference - a String representing the name of the preference.
values - an array of String representing the set of values.