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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe operators for this class of rule. -
Field Summary
Fields inherited from class noaa.coastwatch.render.feature.AttributeRule
matchAttName, matchAttValue, nameMap, operator -
Constructor Summary
Constructors -
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:AttributeRuleGets an array of operators that are valid for this rule.- Specified by:
operatorsin classAttributeRule<String>- Returns:
- the array of valid operators.
-
matches
Description copied from interface:SelectionRuleDetermines 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
-