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).
-
Service()
- Creates a new, empty Service.
-
addDefaultMandExt(String, String)
- Adds a default mandatory extension to this Service.
-
addDefaultOptExt(String, String)
- Adds a default optional extension to this Service.
-
getCategoryList()
- Returns a list of the categories within this Service.
-
getDefaultMandExt(String)
- Returns the value of a default mandatory extension.
-
getDefaultOptExt(String)
- Returns the value of a default optional extension.
-
getDescription()
- Returns the description of this Service.
-
getIcon()
- Returns the icon of this Service.
-
getName()
- Returns the name of this Service.
-
getRatingService()
- Returns the rating-service of this Service.
-
getRatingSystem()
- Returns the rating-system of this Service.
-
getVersion()
- Returns the version of this Service.
-
stringToCategory(Category, String)
- Searches for a transmit-name from the given root.
-
toString()
- Writes the Service object out in PICS 1.1 format suitable for use as a
.rat file.
Service
public Service()
- Creates a new, empty Service.
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.
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.
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
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
getVersion
public String getVersion()
- Returns the version of this Service.
- Returns:
- A String containing the value of the Version attribute.
getRatingSystem
public String getRatingSystem()
- Returns the rating-system of this Service.
- Returns:
- A String containing the value of the Rating-system attribute.
getRatingService
public String getRatingService()
- Returns the rating-service of this Service.
- Returns:
- A String containing the value of the Rating-service attribute.
getName
public String getName()
- Returns the name of this Service.
- Returns:
- A String containing the value of the Name attribute.
getDescription
public String getDescription()
- Returns the description of this Service.
- Returns:
- A String containing the value of the Description attribute.
getIcon
public String getIcon()
- Returns the icon of this Service.
- Returns:
- A String containing the value of the Icon attribute.
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
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
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