Class FilterModel
java.lang.Object
com.smeup.kokos.sdk.entity.model.query.FilterModel
- Author:
- stefano.lanari The model of generic filter
-
Constructor Summary
ConstructorsConstructorDescriptionFilterModel(String oav, Operator operator, Object value, LogicalOperator logicalOperator) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<FilterModel> fromFun(com.smeup.kokos.sdk.fun.Fun fun) Parses the input of a FUN and creates a FilterModel instance.getOav()getValue()voidsetLogicalOperator(LogicalOperator logicalOperator) voidvoidsetOperator(Operator operator) voidstatic StringtoFunFilterString(List<FilterModel> filters)
-
Constructor Details
-
FilterModel
-
-
Method Details
-
toFunFilterString
-
fromFun
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:
fun- 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
-
setOav
-
getOperator
-
setOperator
-
getValue
-
setValue
-
getLogicalOperator
-
setLogicalOperator
-