All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.db.Service

java.lang.Object
   |
   +----w3c.pics.db.Service

public class Service
extends Object
Service is the data abstraction of a application/pics-service.


Constructor Index

 o Service(Reader)
Constructs a new Service object from a Reader.

Method Index

 o clearService()
Clears all values from the Categories for this Service.
 o getCategorylist()
Returns the list of Categories contained within this Service.
 o getDescription()
Returns the description of this service.
 o getFilter(String)
Returns a Filter according to the current values contained in the Categories.
 o getFilter(String, boolean, boolean, boolean)
Returns a Filter according to the current values contained in the Categories.
 o getFilter(String, boolean, boolean, boolean, boolean, DataStub)
Returns a Filter according to the current values contained in the Categories.
 o getIcon()
Returns the icon for this Service.
 o getName()
Returns the name of this Service.
 o getRatingservice()
Returns the rating service for this Service.
 o getRatingsystem()
Returns the rating system for this Service.
 o getVersion()
Returns the version of this Service.
 o haveError()
Checks to see if this Service encountered a mismatch error.
 o initCategories()
Initializes all the Categories in this Service with random values.
 o reInit(DataStub)
Re-Initializes all the Categories in this Service with random values.
 o resetError()
Called to reset the value of the Service's error flag.
 o setFilter(Filter)
Sets the Category values according to the Filter fil.
 o toString()
Returns a String representation of the Service object.

Constructors

 o Service
 public Service(Reader ins) throws PICSException, IOException
Constructs a new Service object from a Reader.

Parameters:
ins - The Reader to read from.
Throws: PICSException
If there was an error in parsing the service description.
Throws: IOException
If there was an error in reading from the service file.

Methods

 o initCategories
 public void initCategories()
Initializes all the Categories in this Service with random values.

 o reInit
 public void reInit(DataStub ds)
Re-Initializes all the Categories in this Service with random values.

Parameters:
ds - The DataStub to be used to generate random numbers.
 o getFilter
 public Filter getFilter(String sname)
Returns a Filter according to the current values contained in the Categories.

Parameters:
sname - A String containing the name of the service description file (.rat file) being used.
Returns:
A Filter representing the current Category values.
 o getFilter
 public Filter getFilter(String sname,
                         boolean abmode,
                         boolean incmode,
                         boolean ipwgmode)
Returns a Filter according to the current values contained in the Categories.

Parameters:
sname - A String containing the name of the service description file (.rat file) being used.
abmode - A boolean indicating if the default action is to accept or block.
incmode - A boolean indicating if the current mode is to include endpoints of ranges or not.
ipwgmode - A boolean indicating if demomode is enable or not.
Returns:
A Filter representing the current Category values.
 o getFilter
 public Filter getFilter(String sname,
                         boolean abmode,
                         boolean incmode,
                         boolean ipwgmode,
                         boolean allcats,
                         DataStub ds)
Returns a Filter according to the current values contained in the Categories.

Parameters:
sname - A String containing the name of the service description file (.rat file) being used.
abmode - A boolean indicating if the default action is to accept or block.
incmode - A boolean indicating if the current mode is to include endpoints of ranges or not.
ipwgmode - A boolean indicating if demomode is enable or not.
allcats - A boolean indicating if every Category in this Service is to be used or not.
ds - The DataStub to be used to generate random numbers used in determining which Categories will be used.
Returns:
A Filter representing the current Category values.
 o setFilter
 public boolean setFilter(Filter fil)
Sets the Category values according to the Filter fil.

Parameters:
fil - The Filter to use.
Returns:
A boolean indicating if there was an error.
 o clearService
 public void clearService()
Clears all values from the Categories for this Service.

 o getVersion
 public String getVersion()
Returns the version of this Service.

Returns:
A String, containing the version of this Service.
 o getRatingsystem
 public String getRatingsystem()
Returns the rating system for this Service.

Returns:
A String, containing the rating system for this Service.
 o getRatingservice
 public String getRatingservice()
Returns the rating service for this Service.

Returns:
A String, containing the rating service for this Service.
 o getIcon
 public String getIcon()
Returns the icon for this Service.

Returns:
A String, representing the icon for this Service.
 o getName
 public String getName()
Returns the name of this Service.

Returns:
A String, the name of this Service.
 o getDescription
 public String getDescription()
Returns the description of this service.

Returns:
A String, containing the description of this Service.
 o getCategorylist
 public Vector getCategorylist()
Returns the list of Categories contained within this Service.

Returns:
A Vector containing the categories.
 o toString
 public String toString()
Returns a String representation of the Service object.

Returns:
A String.
Overrides:
toString in class Object
 o haveError
 public boolean haveError()
Checks to see if this Service encountered a mismatch error.

Returns:
A boolean, indicating if an error occured.
 o resetError
 public void resetError()
Called to reset the value of the Service's error flag.


All Packages  Class Hierarchy  This Package  Previous  Next  Index