All Packages Class Hierarchy This Package Previous Next Index
Class w3c.pics.db.ValueChecker
java.lang.Object
|
+----w3c.pics.db.ValueChecker
- public class ValueChecker
- extends Object
A ValueChecker encapsulates the acceptable values for a particular category
for a particular profile.
-
ValueChecker(String)
- Creates a new ValueChecker.
-
addFailURL(String)
- Adds a URL to the fail URL list in this ValueChecker.
-
addMultiValue(Double)
- Adds a multivalue value to this ValueChecker.
-
addPassURL(String)
- Adds a URL to the pass URL list in this ValueChecker.
-
addRangeValue(RangeValue)
- Adds a range value to this ValueChecker.
-
equals(ValueChecker)
- Compares this ValueChecker against another.
-
getName()
- Returns the Category name from this ValueChecker in the form
servicename.category-transmitname
-
getShortname()
- Returns the Category name from this ValueChecker in the form
category-transmitname
-
isEmpty()
- Returns a boolean indicating if this ValueChecker is empty or not.
-
isFail(String)
- Takes a URL and determines if it is on the failurl list containied within
this ValueChecker.
-
isPass(String)
- Takes a URL and determines if it is on the passurl list contained within
this ValueChecker.
-
isValid(double)
- Takes a value and determines if it matches the values contained within
the ValueChecker.
-
toString()
- Returns a human-readable representation of this ValueChecker.
ValueChecker
public ValueChecker(String name)
- Creates a new ValueChecker.
- Parameters:
- name - The name of the category for this ValueChecker.
isEmpty
public boolean isEmpty()
- Returns a boolean indicating if this ValueChecker is empty or not.
- Returns:
- A boolean.
getName
public String getName()
- Returns the Category name from this ValueChecker in the form
servicename.category-transmitname
- Returns:
- A String containing the category name.
getShortname
public String getShortname()
- Returns the Category name from this ValueChecker in the form
category-transmitname
- Returns:
- A String containing the category name.
equals
public boolean equals(ValueChecker v2)
- Compares this ValueChecker against another. Returns true if they contain
the same exact sets of values.
- Parameters:
- v2 - The ValueChecker to compare with.
- Returns:
- A boolean indicating if this ValueChecker and v2 are
equal.
toString
public String toString()
- Returns a human-readable representation of this ValueChecker.
- Returns:
- A String containing a human-readable representation of this
ValueChecker.
- Overrides:
- toString in class Object
addMultiValue
public void addMultiValue(Double value)
- Adds a multivalue value to this ValueChecker.
- Parameters:
- value - The value to add, as a Double.
addRangeValue
public void addRangeValue(RangeValue value)
- Adds a range value to this ValueChecker.
- Parameters:
- value - The value to add, as a RangeValue.
addFailURL
public void addFailURL(String newurl)
- Adds a URL to the fail URL list in this ValueChecker.
- Parameters:
- newurl - The URL to add, as a String.
addPassURL
public void addPassURL(String newurl)
- Adds a URL to the pass URL list in this ValueChecker.
- Parameters:
- newurl - The URL to add, as a String.
isPass
public boolean isPass(String theurl)
- Takes a URL and determines if it is on the passurl list contained within
this ValueChecker.
- Parameters:
- theurl - The URL to check, as a String.
- Returns:
- A boolean indicating if the URL was found or not.
isFail
public boolean isFail(String theurl)
- Takes a URL and determines if it is on the failurl list containied within
this ValueChecker.
- Parameters:
- theurl - The URL to check, as a String.
- Returns:
- A boolean indicating if the URL was found or not.
isValid
public boolean isValid(double value)
- Takes a value and determines if it matches the values contained within
the ValueChecker.
- Parameters:
- value - The value to check, as a double.
- Returns:
- A boolean indicating if the value matched or not.
All Packages Class Hierarchy This Package Previous Next Index