All Packages Class Hierarchy This Package Previous Next Index
Class w3c.pics.db.Value
java.lang.Object
|
+----w3c.pics.db.Value
- public class Value
- extends Object
A Value encapsulates a single expression from a PICSRulz Filter clause.
-
Value(String)
- Creates a new Value
-
Value(String, String, String)
- Creates a new Value.
-
addFail(Vector)
- Adds a list of URLs (as a Vector) to the FailURL list in this Value.
-
addPass(Vector)
- Adds a list of URLs (as a Vector) to the PassURL list in this Value.
-
getCategory()
- Returns the Category name from this Value in the form servicename
.category-transmitname
-
getDoubleValue()
- Returns the constant value contained in this Value.
-
getOp()
- Returns the operator from this Value.
-
getShortname()
- Returns the Category name from this Value in the form
category-transmitname
-
getValue()
- Returns the constant value contained in this Value.
-
isFail(String)
- Takes a URL and determines if it is on the FailURL list containied within
this Value.
-
isMulti()
- Returns a boolean indicating if this Value is for a multivalue category
or not.
-
isPass(String)
- Takes a URL and determines if it is on the PassURL list contained within
this Value.
-
isValid(double)
- Returns a boolean indicated if the input value is valid or not.
-
toString()
- Returns a human-readable representation of this Value.
Value
public Value(String categoryname,
String operator,
String value)
- Creates a new Value.
- Parameters:
- categoryname - The Category for this Value.
- operator - The operator for this Value.
- value - The constant value for this Value.
Value
public Value(String categoryname)
- Creates a new Value
- Parameters:
- categoryname - The Category for this Value.
addFail
public void addFail(Vector urllist)
- Adds a list of URLs (as a Vector) to the FailURL list in this Value.
- Parameters:
- urllist - A Vector of URLs (Strings).
addPass
public void addPass(Vector urllist)
- Adds a list of URLs (as a Vector) to the PassURL list in this Value.
- Parameters:
- urllist - A Vector of URLs (Strings).
isMulti
public boolean isMulti()
- Returns a boolean indicating if this Value is for a multivalue category
or not.
- Returns:
- A boolean, true if this Value is multivalue,
false if not.
isPass
public boolean isPass(String theurl)
- Takes a URL and determines if it is on the PassURL list contained within
this Value.
- 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 Value.
- Parameters:
- theurl - The URL to check, as a String.
- Returns:
- A boolean indicating if the URL was found or not.
toString
public String toString()
- Returns a human-readable representation of this Value.
- Returns:
- A String containing a human-readable representation of this Value.
- Overrides:
- toString in class Object
getOp
public String getOp()
- Returns the operator from this Value.
- Returns:
- The operator, as a String.
getCategory
public String getCategory()
- Returns the Category name from this Value in the form servicename
.category-transmitname
- Returns:
- A String containing the category name.
getShortname
public String getShortname()
- Returns the Category name from this Value in the form
category-transmitname
- Returns:
- A String containing the category name.
getValue
public String getValue()
- Returns the constant value contained in this Value.
- Returns:
- A value as a String.
getDoubleValue
public double getDoubleValue()
- Returns the constant value contained in this Value.
- Returns:
- A value as a double.
isValid
public boolean isValid(double input)
- Returns a boolean indicated if the input value is valid or not.
- Parameters:
- input - The value to check.
- Returns:
- A boolean indicating if the input passed the rule within this
Value.
All Packages Class Hierarchy This Package Previous Next Index