com.isomorphic.criteria

## Class OperatorBase

- java.lang.Object
- - com.isomorphic.criteria.OperatorBase

- All Implemented Interfaces:
    CanParseCriterion, Operator
  Direct Known Subclasses:
    LogicalOperator, OtherFieldOperator, RangeOperator, SimpleOperator

      public abstract class OperatorBase
      extends java.lang.Object
      implements CanParseCriterion, Operator

  Base class for operators that provide check for base operator parameters during parsing.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract java.util.Map` | `convertToMap(Criterion criterion)` Convert criterion to map representation.
    `abstract boolean` | `isRequiresCriteria()` Does operator need criteria list parameter.
    `abstract boolean` | `isRequiresFieldName()` Does operator need fieldName parameter.
    `abstract boolean` | `isRequiresValue()` Does operator need value parameter.
    `abstract Criterion` | `parseCriterion(java.lang.String fieldName, java.lang.Object value, java.util.List criteria)` Logic for parsing criterion.

    - ### Methods inherited from interface com.isomorphic.criteria.CanParseCriterion

      `parseCriterion`

    - ### Methods inherited from interface com.isomorphic.criteria.Operator

      `condition, getID`

- - ### Method Detail

    - #### isRequiresFieldName

          public abstract boolean isRequiresFieldName()

      Does operator need fieldName parameter.

    - #### isRequiresValue

          public abstract boolean isRequiresValue()

      Does operator need value parameter.

    - #### isRequiresCriteria

          public abstract boolean isRequiresCriteria()

      Does operator need criteria list parameter.

    - #### parseCriterion

          public abstract Criterion parseCriterion(java.lang.String fieldName,
                                                   java.lang.Object value,
                                                   java.util.List criteria)

      Logic for parsing criterion. Should be implemented in operator classes.
      Parameters:
        `fieldName` - - value of fieldName parameter.
        `value` - - value of value parameter.
        `criteria` - - list of criteria
      Returns:
        parsed criterion.

    - #### convertToMap

          public abstract java.util.Map convertToMap(Criterion criterion)

      Convert criterion to map representation.
      Parameters:
        `criterion` - - criterion to convert.
      Returns:
        map representation of criterion.