All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.parser.Service

java.lang.Object
   |
   +----w3c.pics.parser.Service

public class Service
extends Object
implements Serializable
A class representing a PICS 1.1 service description (a .rat file).


Constructor Index

 o Service()
Creates a new, empty Service.

Method Index

 o addDefaultMandExt(String, String)
Adds a default mandatory extension to this Service.
 o addDefaultOptExt(String, String)
Adds a default optional extension to this Service.
 o getCategoryList()
Returns a list of the categories within this Service.
 o getDefaultMandExt(String)
Returns the value of a default mandatory extension.
 o getDefaultOptExt(String)
Returns the value of a default optional extension.
 o getDescription()
Returns the description of this Service.
 o getIcon()
Returns the icon of this Service.
 o getName()
Returns the name of this Service.
 o getRatingService()
Returns the rating-service of this Service.
 o getRatingSystem()
Returns the rating-system of this Service.
 o getVersion()
Returns the version of this Service.
 o stringToCategory(Category, String)
Searches for a transmit-name from the given root.
 o toString()
Writes the Service object out in PICS 1.1 format suitable for use as a .rat file.

Constructors

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

Methods

 o addDefaultOptExt
 public void addDefaultOptExt(String exName,
                              String data)
Adds a default optional extension to this Service.

Parameters:
exName - The extension name.
data - The extension data.
 o addDefaultMandExt
 public void addDefaultMandExt(String exName,
                               String data)
Adds a default mandatory extension to this Service.

Parameters:
exName - The extension name.
data - The extension data.
 o getDefaultOptExt
 public String getDefaultOptExt(String exName)
Returns the value of a default optional extension.

Parameters:
exName - The extension to look up.
Returns:
A String, containing the value of the extension exName
 o getDefaultMandExt
 public String getDefaultMandExt(String exName)
Returns the value of a default mandatory extension.

Parameters:
exName - The extension to look up.
Returns:
A String, containing the value of the extension exName
 o getVersion
 public String getVersion()
Returns the version of this Service.

Returns:
A String containing the value of the Version attribute.
 o getRatingSystem
 public String getRatingSystem()
Returns the rating-system of this Service.

Returns:
A String containing the value of the Rating-system attribute.
 o getRatingService
 public String getRatingService()
Returns the rating-service of this Service.

Returns:
A String containing the value of the Rating-service attribute.
 o getName
 public String getName()
Returns the name of this Service.

Returns:
A String containing the value of the Name attribute.
 o getDescription
 public String getDescription()
Returns the description of this Service.

Returns:
A String containing the value of the Description attribute.
 o getIcon
 public String getIcon()
Returns the icon of this Service.

Returns:
A String containing the value of the Icon attribute.
 o getCategoryList
 public Vector getCategoryList()
Returns a list of the categories within this Service.

Returns:
A Vector of Category objects representing the categories of this service.
See Also:
Category
 o toString
 public String toString()
Writes the Service object out in PICS 1.1 format suitable for use as a .rat file.

Returns:
A String containing the Service in the format of application/pics-service.
Overrides:
toString in class Object
 o stringToCategory
 protected Category stringToCategory(Category r,
                                     String str)
Searches for a transmit-name from the given root.

Parameters:
r - The root Category to start the search from.
str - The String to search for
Returns:
The Category, if it is found. If not, the closest ancestor Category object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index