All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.db.ProfileData

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

public class ProfileData
extends Object
A class to store the internal representations of a Profile.


Constructor Index

 o ProfileData(String)
Creates a new ProfileData.

Method Index

 o addChecker(ValueChecker)
Adds a ValueChecker to the data contained within this ProfileData.
 o countCheckers()
Returns the number of ValueCheckers that are contained in this ProfileData.
 o isValid(String[], String[])
Takes sets of category names and values, and runs them through the ValueCheckers contained within this ProfileData, to determine if a PICS label has matched the PICS Profile represented by this ProfileData object.
 o toString()
Returns a human-readable representation of the ProfileData.

Constructors

 o ProfileData
 public ProfileData(String pname)
Creates a new ProfileData.

Parameters:
pname - The name of the profile.

Methods

 o toString
 public String toString()
Returns a human-readable representation of the ProfileData.

Returns:
A String containing a human-readable representation of the ProfileData.
Overrides:
toString in class Object
 o addChecker
 public void addChecker(ValueChecker vc)
Adds a ValueChecker to the data contained within this ProfileData.

Parameters:
vc - The ValueChecker to add.
 o countCheckers
 public int countCheckers()
Returns the number of ValueCheckers that are contained in this ProfileData.

Returns:
An integer, the number of ValueCheckers that are contained in this ProfileData.
 o isValid
 public boolean isValid(String picsnames[],
                        String picsvalues[])
Takes sets of category names and values, and runs them through the ValueCheckers contained within this ProfileData, to determine if a PICS label has matched the PICS Profile represented by this ProfileData object.

Parameters:
picsnames - An array of Strings containing the category names from the label.
picsvalues - An array of Strings containing the values from the label.
Returns:
A boolean, indicating whether or not the profile matched the label.

All Packages  Class Hierarchy  This Package  Previous  Next  Index