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