All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.parser.Category

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

public class Category
extends Object
implements Serializable
This class represents a category in a PICS Service Description (.rat file) Like the .rat file categories, Category objects can be arbitrarily nested.


Method Index

 o addMandExt(String, String)
Adds a mandatory extension to this Category.
 o addOptExt(String, String)
Adds an optional extension to this Category.
 o getChildren()
Returns a list of this Category's children, if any.
 o getEnums()
Returns a list of all of the labeled values contained in this Category.
 o getFullName()
Returns a String containing the full name of this Category, as it would appear in a PICS label.
 o getMandExt(String)
Returns the value of a mandatory extension.
 o getOptExt(String)
Returns the value of an optional extension.
 o getOption(String)
Returns the requested one of the Category's options.
 o getTransmitName()
Returns a String containing the transmit-name of this Category.
 o toString()
Writes the Category object out in PICS 1.1 format, suitable for inclusion in a .rat file.

Methods

 o getTransmitName
 public String getTransmitName()
Returns a String containing the transmit-name of this Category.

Returns:
A String containing the transmit-name.
 o getFullName
 public String getFullName()
Returns a String containing the full name of this Category, as it would appear in a PICS label.

Returns:
A String containing the full name of this Category.
 o getOption
 public String getOption(String optionName)
Returns the requested one of the Category's options.

Parameters:
optionName - The option to return.
Returns:
A String, the value of the option optionName
 o getChildren
 public Vector getChildren()
Returns a list of this Category's children, if any.

Returns:
A Vector containing this Category's children, as Category objects.
 o addOptExt
 public void addOptExt(String exName,
                       String data)
Adds an optional extension to this Category.

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

Parameters:
exName - The extension name.
data - The extension data.
 o getOptExt
 public String getOptExt(String exName)
Returns the value of an optional extension.

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

Parameters:
exName - The extension to look up.
Returns:
A String, containing the value of the extension exName
 o toString
 public String toString()
Writes the Category object out in PICS 1.1 format, suitable for inclusion in a .rat file.

Returns:
A String containing PICS 1.1 format category information.
Overrides:
toString in class Object
 o getEnums
 public Vector getEnums()
Returns a list of all of the labeled values contained in this Category.

Returns:
A Vector containing Enums representing the labeled values.
See Also:
Enum

All Packages  Class Hierarchy  This Package  Previous  Next  Index