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.
-
ProfileData(String)
- Creates a new ProfileData.
-
addChecker(ValueChecker)
- Adds a ValueChecker to the data contained within this ProfileData.
-
countCheckers()
- Returns the number of ValueCheckers that are contained in this ProfileData.
-
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.
-
toString()
- Returns a human-readable representation of the ProfileData.
ProfileData
public ProfileData(String pname)
- Creates a new ProfileData.
- Parameters:
- pname - The name of the profile.
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
addChecker
public void addChecker(ValueChecker vc)
- Adds a ValueChecker to the data contained within this ProfileData.
- Parameters:
- vc - The ValueChecker to add.
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.
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