public class DateRule extends AttributeRule<java.util.Date>
DateRule
provides a selection mechanism for
features based on a date value of one of the attributes.Modifier and Type | Class and Description |
---|---|
static class |
DateRule.Operator
The operators for this class of rule.
|
matchAttName, matchAttValue, nameMap, operator
Constructor and Description |
---|
DateRule(java.lang.String attName,
java.util.Map<java.lang.String,java.lang.Integer> nameMap,
java.util.Date dateValue)
Creates a new date rule.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Tests this class.
|
boolean |
matches(Feature feature)
Determines if a feature matches the rule.
|
java.lang.Enum[] |
operators()
Gets an array of operators that are valid for this rule.
|
clone, getAttribute, getOperator, getValue, setAttribute, setOperator, setValue, toString
public DateRule(java.lang.String attName, java.util.Map<java.lang.String,java.lang.Integer> nameMap, java.util.Date dateValue)
attName
- the attribute name to use for matching.nameMap
- the name to index mapping.dateValue
- the date value to use for matching.public java.lang.Enum[] operators()
AttributeRule
operators
in class AttributeRule<java.util.Date>
public boolean matches(Feature feature)
SelectionRule
feature
- the feature to check.public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception