Class FieldFilterRule

java.lang.Object
com.northconcepts.datapipeline.filter.FieldFilterRule
Direct Known Subclasses:
Contains, DateIs, DateIsAfter, DateIsBefore, IsEmpty, IsFieldType, IsInstanceOfJavaType, IsJavaType, IsNotEmpty, IsNotNull, IsNull, NotRule, OrRule, PatternMatch, ValueMatch

public abstract class FieldFilterRule extends Object
Base class for the per-field conditions of a FieldFilter; a record is kept only if every rule allows each checked field.
  • Constructor Details

    • FieldFilterRule

      public FieldFilterRule()
  • Method Details

    • getFieldFilter

      public FieldFilter getFieldFilter()
      Returns the FieldFilter this rule was added to or null if it was not added to one directly.
    • allow

      public abstract boolean allow(Field field)
      Returns true if the given field satisfies this rule; called by FieldFilter with each field it checks.