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.
-
Enum(String, String)
- Creates a new Enum.
-
getName()
- Returns the name of this Enum.
-
getValue()
- Returns the value of this Enum.
-
setDesc(String)
- Sets the description attribute for this Enum.
-
setIcon(String)
- Sets the icon attribute for this Enum.
-
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.
Enum
public Enum(String ename,
String evalue)
- Creates a new Enum.
- Parameters:
- ename - The name for the Enum.
- evalue - The value.
setIcon
public void setIcon(String icondef)
- Sets the icon attribute for this Enum.
- Parameters:
- icondef - The new icon attribute value.
setDesc
public void setDesc(String description)
- Sets the description attribute for this Enum.
- Parameters:
- description - The new description attribute value.
getValue
public String getValue()
- Returns the value of this Enum.
- Returns:
- The value of this Enum as a String.
getName
public String getName()
- Returns the name of this Enum.
- Returns:
- The name of this Enum.
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