Optional
secondAssociated with secondValueHostName only. Assign to a LookupKey that is associated with a DataTypeConverter. Use it to convert the value prior to comparing, to handle special cases like case insensitive matching ("CaseInsensitive"), rounding a number to an integer ("Round"), just the Day or Month or any other number in a Date object ("Day", "Month").
One source for the value to evaluate. By design, Condition.evaluate() takes a valueHost object, allowing the caller to simply pass in the value. Leave this null to use that valueHost object.
Assign this to a ValueHostName if you want to have it looked up in the ValueHostsManager.getValueHost().
Typically leave Validator.ConditionConfig.valueHostName null because Condition.evaluate() is passed the correct valueHost. However, Validator.EnablerConfig needs it assigned. Same with any Condition that is a child of another, like in ConditionWithChildrenBase.
Many conditions need two or more sources for values. They are expected to create more ValueHostName properties in their ConditionConfig, where the remaining Properties are identified.
ValueHostName to retrieve a ValueHost that will be the source of another value for the evaluate() method.
Identifies the class for ConditionFactory to create. It is also used as the Validator's errorCode when ValidatorConfig.errorCode was not assigned.
Optional
categoryMost Condition classes have an official value for Category. This allows you to override that official value in special situations and supply a value when the Condition does not.
Optional
conversionAssign to a LookupKey of the data type you want the current value to be converted to before comparing. Examples:
Generated using TypeDoc v0.25.12
ConditionConfig for CompareToSecondValueHostConditionBase.