Package noaa.coastwatch.render.feature
Class TextRule
- All Implemented Interfaces:
Cloneable
,SelectionRule
A
TextRule
provides a selection mechanism for
features based on the string value of one of the attributes.- Since:
- 3.3.2
- Author:
- Peter Hollemans
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The operators for this class of rule. -
Field Summary
Fields inherited from class noaa.coastwatch.render.feature.AttributeRule
matchAttName, matchAttValue, nameMap, operator
-
Constructor Summary
-
Method Summary
Methods inherited from class noaa.coastwatch.render.feature.AttributeRule
clone, getAttribute, getOperator, getValue, setAttribute, setOperator, setValue, toString
-
Constructor Details
-
TextRule
Creates a new text rule.- Parameters:
attName
- the attribute name to use for matching.nameMap
- the name to index mapping.textValue
- the text value to use for matching.
-
-
Method Details
-
operators
Description copied from class:AttributeRule
Gets an array of operators that are valid for this rule.- Specified by:
operators
in classAttributeRule<String>
- Returns:
- the array of valid operators.
-
matches
Description copied from interface:SelectionRule
Determines if a feature matches the rule.- Parameters:
feature
- the feature to check.- Returns:
- true if the feature matches this rule or false if not.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-