All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.db.parser.Label

java.lang.Object
   |
   +----w3c.pics.db.parser.Label

public class Label
extends Object
implements Serializable, Cloneable
A class that represents a single PICS label.


Constructor Index

 o Label()
Creates a new, empty Label.

Method Index

 o addMExtension(String, String)
Adds a mandatory extension to this Label.
 o addOExtension(String, String)
Adds an optional extension to this Label.
 o getCategory(String)
Returns the ratings for a particular category in this Label.
 o getMExtension(String)
Returns the requested one of the Label's mandatory extensions.
 o getOExtension(String)
Returns the requested one of the Label's optional extensions.
 o getOption(String)
Returns the requested one of the Label's options.
 o getRatings()
Returns all of the ratings in a Label.
 o getService()
Returns the Service URL associated with this Label.
 o setOption(String, String)
Changes the value of one of the Label's options.
 o setService(String)
Changes the Service URL associated with this Label.
 o toDsigString()
Returns a String containing the canonical PICS 1.1 representation of this Label, suitable for signing.
 o toString()
Returns a String containing the PICS 1.1 representation of this Label.

Constructors

 o Label
 public Label()
Creates a new, empty Label.

Methods

 o getOption
 public String getOption(String optionName)
Returns the requested one of the Label's options.

Parameters:
optionName - The option to return.
Returns:
A String, the value of the option optionName
 o setOption
 public void setOption(String optionName,
                       String value)
Changes the value of one of the Label's options.

Parameters:
optionName - The option to change.
value - The new value.
 o addMExtension
 public void addMExtension(String exName,
                           String data)
Adds a mandatory extension to this Label.

Parameters:
exName - The name of the extension.
data - The extension data.
 o addOExtension
 public void addOExtension(String exName,
                           String data)
Adds an optional extension to this Label.

Parameters:
exName - The name of the extension.
data - The extension data.
 o getMExtension
 public String getMExtension(String exName)
Returns the requested one of the Label's mandatory extensions.

Parameters:
exName - The extension to return.
Returns:
A String, the data of the mandatory extension exName
 o getOExtension
 public String getOExtension(String exName)
Returns the requested one of the Label's optional extensions.

Parameters:
exName - The extension to return.
Returns:
A String, the data of the optional extension exName
 o getService
 public String getService()
Returns the Service URL associated with this Label.

Returns:
A String containing the Service URL.
 o setService
 public void setService(String serURL)
Changes the Service URL associated with this Label.

Parameters:
serURL - The new Service URL.
 o getRatings
 public Hashtable getRatings()
Returns all of the ratings in a Label.

Returns:
A Hashtable mapping keys to Vectors of Rating objects.
 o getCategory
 public Vector getCategory(String categoryName)
Returns the ratings for a particular category in this Label.

Parameters:
categoryName - The category whose ratings are to be returned.
Returns:
A Vector, containing the Rating objects for the category categoryName.
 o toString
 public String toString()
Returns a String containing the PICS 1.1 representation of this Label.

Returns:
A String with a valid PICS 1.1 label representation of this Label object.
Overrides:
toString in class Object
 o toDsigString
 public String toDsigString()
Returns a String containing the canonical PICS 1.1 representation of this Label, suitable for signing.

Returns:
A String with a valid canonicalized PICS 1.1 label representation of this Label object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index