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.
-
Service(Reader)
- Constructs a new Service object from a Reader.
-
clearService()
- Clears all values from the Categories for this Service.
-
getCategorylist()
- Returns the list of Categories contained within this Service.
-
getDescription()
- Returns the description of this service.
-
getFilter(String)
- Returns a Filter according to the current values contained in the
Categories.
-
getFilter(String, boolean, boolean, boolean)
- Returns a Filter according to the current values contained in the
Categories.
-
getFilter(String, boolean, boolean, boolean, boolean, DataStub)
- Returns a Filter according to the current values contained in the
Categories.
-
getIcon()
- Returns the icon for this Service.
-
getName()
- Returns the name of this Service.
-
getRatingservice()
- Returns the rating service for this Service.
-
getRatingsystem()
- Returns the rating system for this Service.
-
getVersion()
- Returns the version of this Service.
-
haveError()
- Checks to see if this Service encountered a mismatch error.
-
initCategories()
- Initializes all the Categories in this Service with random values.
-
reInit(DataStub)
- Re-Initializes all the Categories in this Service with random values.
-
resetError()
- Called to reset the value of the Service's error flag.
-
setFilter(Filter)
- Sets the Category values according to the Filter fil.
-
toString()
- Returns a String representation of the Service object.
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.
initCategories
public void initCategories()
- Initializes all the Categories in this Service with random values.
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.
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.
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.
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.
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.
clearService
public void clearService()
- Clears all values from the Categories for this Service.
getVersion
public String getVersion()
- Returns the version of this Service.
- Returns:
- A String, containing the version of this Service.
getRatingsystem
public String getRatingsystem()
- Returns the rating system for this Service.
- Returns:
- A String, containing the rating system for this Service.
getRatingservice
public String getRatingservice()
- Returns the rating service for this Service.
- Returns:
- A String, containing the rating service for this Service.
getIcon
public String getIcon()
- Returns the icon for this Service.
- Returns:
- A String, representing the icon for this Service.
getName
public String getName()
- Returns the name of this Service.
- Returns:
- A String, the name of this Service.
getDescription
public String getDescription()
- Returns the description of this service.
- Returns:
- A String, containing the description of this Service.
getCategorylist
public Vector getCategorylist()
- Returns the list of Categories contained within this Service.
- Returns:
- A Vector containing the categories.
toString
public String toString()
- Returns a String representation of the Service object.
- Returns:
- A String.
- Overrides:
- toString in class Object
haveError
public boolean haveError()
- Checks to see if this Service encountered a mismatch error.
- Returns:
- A boolean, indicating if an error occured.
resetError
public void resetError()
- Called to reset the value of the Service's error flag.
All Packages Class Hierarchy This Package Previous Next Index