Constraint class final

A bind's constraint and its message.

Port of org.javarosa.core.model.condition.Constraint.

Constructors

Constraint(XPathConditional constraint, String? message)
Creates a constraint; a message of the form jr:itext('id') is compiled so it can be localized.

Properties

constraint → XPathConditional
The constraint expression.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String?
The literal jr:constraintMsg, if any.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

constraintMessage(EvaluationContext context, FormInstance instance, String? textForm) → String?
The message to show: the literal message (only for the default textForm), or the localized one for jr:itext(...) messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited