Class FilterModel

java.lang.Object
com.smeup.kokos.sdk.entity.model.query.FilterModel

public class FilterModel extends Object
Author:
stefano.lanari The model of generic filter
  • Field Details

  • Constructor Details

  • Method Details

    • toFunFilterString

      public static String toFunFilterString(List<FilterModel> filters)
    • parse

      public static List<FilterModel> parse(String input) throws Exception
      Parses the input of a FUN and creates a FilterModel instance. i.e. from OAV(OAV_CODE) OPE(OPERATOR) VAL(VALUE) to a FilterModel instance with oav=OAV_CODE, operator=OPERATOR and value=VALUE
      Parameters:
      input - the FUN object containing the input string with filter parameters in the format "OAV(OAV_CODE) OPE(OPERATOR) VAL(VALUE)"
      Returns:
      a FilterModel instance with the parsed oav, operator and value, or null if the input string is not in the correct format
      Throws:
      Exception
    • getOav

      public String getOav()
    • setOav

      public void setOav(String oav)
    • getOperator

      public Operator getOperator()
    • setOperator

      public void setOperator(Operator operator)
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • getLogicalOperator

      public LogicalOperator getLogicalOperator()
    • setLogicalOperator

      public void setLogicalOperator(LogicalOperator logicalOperator)