All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.parser.Enum

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

public class Enum
extends Object
implements Serializable
Enum represents an enumerated value from a PICS service description. Enumerated values are the labeled values that can appear in a category description.


Constructor Index

 o Enum(String, String)
Creates a new Enum.

Method Index

 o getName()
Returns the name of this Enum.
 o getValue()
Returns the value of this Enum.
 o setDesc(String)
Sets the description attribute for this Enum.
 o setIcon(String)
Sets the icon attribute for this Enum.
 o toString()
Returns a String containing the attributes of this Enum, in PICS 1.1 format, suitable for including in a category description of a .rat file.

Constructors

 o Enum
 public Enum(String ename,
             String evalue)
Creates a new Enum.

Parameters:
ename - The name for the Enum.
evalue - The value.

Methods

 o setIcon
 public void setIcon(String icondef)
Sets the icon attribute for this Enum.

Parameters:
icondef - The new icon attribute value.
 o setDesc
 public void setDesc(String description)
Sets the description attribute for this Enum.

Parameters:
description - The new description attribute value.
 o getValue
 public String getValue()
Returns the value of this Enum.

Returns:
The value of this Enum as a String.
 o getName
 public String getName()
Returns the name of this Enum.

Returns:
The name of this Enum.
 o toString
 public String toString()
Returns a String containing the attributes of this Enum, in PICS 1.1 format, suitable for including in a category description of a .rat file.

Returns:
A String containing the PICS 1.1 representation of this Enum.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index