BindBuilderXFormsElement class final

A builder for a <bind> element, configured with cascades.

final element = bind('/data/age')
  ..type('int')
  ..required()
  ..constraint('. > 0');

Port of org.javarosa.test.BindBuilderXFormsElement.

Inheritance

Properties

attributes → Map<String, String>
Attributes in insertion order.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
Qualified element name, for example h:head or input.
finalinherited
nodeset → String
The bind's nodeset attribute.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

asXml() → String
Serializes this element and its descendants as XML.
override
calculate(String expression) → void
Sets the calculate expression.
constraint(String expression) → void
Sets the constraint expression.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preload(String expression) → void
Sets the jr:preload attribute.
readonly([String expression = 'true()']) → void
Sets the readonly expression (default true()).
relevant(String expression) → void
Sets the relevant expression.
required([String expression = 'true()']) → void
Sets the required expression (default true()).
toString() → String
A string representation of this object.
inherited
type(String type) → void
Sets the data type, for example int or geopoint.
withAttribute(String namespace, String name, String expression) → void
Sets an arbitrary namespaced attribute namespace:name.

Operators

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