Module is.codion.framework.model
Package is.codion.framework.model
Interface AttributeConditionModel<T>
- Type Parameters:
T- the attribute type
- All Superinterfaces:
ConditionModel<T>
- All Known Subinterfaces:
ColumnConditionModel<T>,ForeignKeyConditionModel,SwingForeignKeyConditionModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.common.model.condition.ConditionModel
ConditionModel.Builder<T>, ConditionModel.Operands<T>, ConditionModel.SetCondition<T>, ConditionModel.Wildcard -
Field Summary
Fields inherited from interface is.codion.common.model.condition.ConditionModel
CASE_SENSITIVE, WILDCARD, WILDCARD_CHARACTER -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanaccepts(Comparable<T> value) Returns true if the given value is accepted by this models condition.default Statedefault Statedefault voidclear()Clears this condition model, that is, disables it, clears all operands and sets the operator to the initial one.default Stateenabled()format()default Statelocked()default ConditionModel.Operands<T> operands()operator()default ConditionModel.SetCondition<T> set()Methods inherited from interface is.codion.common.model.condition.ConditionModel
changed
-
Method Details
-
attribute
- Returns:
- the attribute
-
condition
ConditionModel<T> condition()- Returns:
- the underlying condition model
-
caseSensitive
- Specified by:
caseSensitivein interfaceConditionModel<T>- Returns:
- the
Statecontrolling whether this model is case-sensitive, when working with strings
-
format
- Specified by:
formatin interfaceConditionModel<T>- Returns:
- the
Formatto use when presenting a value, an emptyOptionalin case none is available
-
dateTimePattern
- Specified by:
dateTimePatternin interfaceConditionModel<T>- Returns:
- the date/time format pattern to use when presenting a temporal value, an empty
Optionalin case none is available
-
autoEnable
- Specified by:
autoEnablein interfaceConditionModel<T>- Returns:
- the
Statecontrolling whether this model is enabled automatically when a condition value is specified
-
locked
- Specified by:
lockedin interfaceConditionModel<T>- Returns:
- the
Statecontrolling the locked status
-
valueClass
- Specified by:
valueClassin interfaceConditionModel<T>- Returns:
- the value class this condition model is based on
-
operators
- Specified by:
operatorsin interfaceConditionModel<T>- Returns:
- the operators available in this condition model
-
enabled
- Specified by:
enabledin interfaceConditionModel<T>- Returns:
- a state controlling the enabled status
-
clear
default void clear()Description copied from interface:ConditionModelClears this condition model, that is, disables it, clears all operands and sets the operator to the initial one.- Specified by:
clearin interfaceConditionModel<T>- See Also:
-
operator
- Specified by:
operatorin interfaceConditionModel<T>- Returns:
- a
Valuecontrolling on the operator
-
operands
- Specified by:
operandsin interfaceConditionModel<T>- Returns:
- the operands
-
set
- Specified by:
setin interfaceConditionModel<T>- Returns:
- the
ConditionModel.SetConditioninstance
-
accepts
Description copied from interface:ConditionModelReturns true if the given value is accepted by this models condition.- Specified by:
acceptsin interfaceConditionModel<T>- Parameters:
value- the value- Returns:
- true if the given value is accepted by this models condition
-