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.


Constructor Index

 o ValueChecker(String)
Creates a new ValueChecker.

Method Index

 o addFailURL(String)
Adds a URL to the fail URL list in this ValueChecker.
 o addMultiValue(Double)
Adds a multivalue value to this ValueChecker.
 o addPassURL(String)
Adds a URL to the pass URL list in this ValueChecker.
 o addRangeValue(RangeValue)
Adds a range value to this ValueChecker.
 o equals(ValueChecker)
Compares this ValueChecker against another.
 o getName()
Returns the Category name from this ValueChecker in the form servicename.category-transmitname
 o getShortname()
Returns the Category name from this ValueChecker in the form category-transmitname
 o isEmpty()
Returns a boolean indicating if this ValueChecker is empty or not.
 o isFail(String)
Takes a URL and determines if it is on the failurl list containied within this ValueChecker.
 o isPass(String)
Takes a URL and determines if it is on the passurl list contained within this ValueChecker.
 o isValid(double)
Takes a value and determines if it matches the values contained within the ValueChecker.
 o toString()
Returns a human-readable representation of this ValueChecker.

Constructors

 o ValueChecker
 public ValueChecker(String name)
Creates a new ValueChecker.

Parameters:
name - The name of the category for this ValueChecker.

Methods

 o isEmpty
 public boolean isEmpty()
Returns a boolean indicating if this ValueChecker is empty or not.

Returns:
A boolean.
 o getName
 public String getName()
Returns the Category name from this ValueChecker in the form servicename.category-transmitname

Returns:
A String containing the category name.
 o getShortname
 public String getShortname()
Returns the Category name from this ValueChecker in the form category-transmitname

Returns:
A String containing the category name.
 o 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.
 o 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
 o addMultiValue
 public void addMultiValue(Double value)
Adds a multivalue value to this ValueChecker.

Parameters:
value - The value to add, as a Double.
 o addRangeValue
 public void addRangeValue(RangeValue value)
Adds a range value to this ValueChecker.

Parameters:
value - The value to add, as a RangeValue.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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