Class DateRule

java.lang.Object
noaa.coastwatch.render.feature.AttributeRule<Date>
noaa.coastwatch.render.feature.DateRule
All Implemented Interfaces:
Cloneable, SelectionRule

public class DateRule extends AttributeRule<Date>
A DateRule provides a selection mechanism for features based on a date value of one of the attributes.
Since:
3.3.2
Author:
Peter Hollemans
  • Constructor Details

    • DateRule

      public DateRule(String attName, Map<String,Integer> nameMap, Date dateValue)
      Creates a new date rule.
      Parameters:
      attName - the attribute name to use for matching.
      nameMap - the name to index mapping.
      dateValue - the date value to use for matching.
  • Method Details

    • operators

      public Enum[] operators()
      Description copied from class: AttributeRule
      Gets an array of operators that are valid for this rule.
      Specified by:
      operators in class AttributeRule<Date>
      Returns:
      the array of valid operators.
    • matches

      public boolean matches(Feature feature)
      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

      public static void main(String[] argv) throws Exception
      Tests this class.
      Parameters:
      argv - the array of command line parameters.
      Throws:
      Exception