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.
-
addMandExt(String, String)
- Adds a mandatory extension to this Category.
-
addOptExt(String, String)
- Adds an optional extension to this Category.
-
getChildren()
- Returns a list of this Category's children, if any.
-
getEnums()
- Returns a list of all of the labeled values contained in this Category.
-
getFullName()
- Returns a String containing the full name of this Category, as it would
appear in a PICS label.
-
getMandExt(String)
- Returns the value of a mandatory extension.
-
getOptExt(String)
- Returns the value of an optional extension.
-
getOption(String)
- Returns the requested one of the Category's options.
-
getTransmitName()
- Returns a String containing the transmit-name of this Category.
-
toString()
- Writes the Category object out in PICS 1.1 format, suitable for inclusion
in a .rat file.
getTransmitName
public String getTransmitName()
- Returns a String containing the transmit-name of this Category.
- Returns:
- A String containing the transmit-name.
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.
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
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.
addOptExt
public void addOptExt(String exName,
String data)
- Adds an optional extension to this Category.
- Parameters:
- exName - The extension name.
- data - The extension data.
addMandExt
public void addMandExt(String exName,
String data)
- Adds a mandatory extension to this Category.
- Parameters:
- exName - The extension name.
- data - The extension data.
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
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
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
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