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.
-
Label()
- Creates a new, empty Label.
-
addMExtension(String, String)
- Adds a mandatory extension to this Label.
-
addOExtension(String, String)
- Adds an optional extension to this Label.
-
getCategory(String)
- Returns the ratings for a particular category in this Label.
-
getMExtension(String)
- Returns the requested one of the Label's mandatory extensions.
-
getOExtension(String)
- Returns the requested one of the Label's optional extensions.
-
getOption(String)
- Returns the requested one of the Label's options.
-
getRatings()
- Returns all of the ratings in a Label.
-
getService()
- Returns the Service URL associated with this Label.
-
setOption(String, String)
- Changes the value of one of the Label's options.
-
setService(String)
- Changes the Service URL associated with this Label.
-
toDsigString()
- Returns a String containing the canonical PICS 1.1 representation of
this Label, suitable for signing.
-
toString()
- Returns a String containing the PICS 1.1 representation of this Label.
Label
public Label()
- Creates a new, empty Label.
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
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.
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.
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.
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
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
getService
public String getService()
- Returns the Service URL associated with this Label.
- Returns:
- A String containing the Service URL.
setService
public void setService(String serURL)
- Changes the Service URL associated with this Label.
- Parameters:
- serURL - The new Service URL.
getRatings
public Hashtable getRatings()
- Returns all of the ratings in a Label.
- Returns:
- A Hashtable mapping keys to Vectors of Rating objects.
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.
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
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