Interface EquivalenceRule
- All Superinterfaces:
Identified
- All Known Implementing Classes:
IntegerToFloatingRule
,NullableRule
,PartialStructRule
,SingleGeomToMultiGeomRule
,SingleValueStructRule
,StructGeometryRule
An equivalence rule allows type-safe coercion to be applied to the Riskscape Expression language in a pluggable way.
An equivalence rule can inspect a proposed assignment and return a Coercer
that can reliably alter the source
value so that it can be safely assigned to the target.
NB not sure whether the resulting type must = target type, or be covariant with it
(See Variance.COVARIANT
)
-
Method Summary
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
-
Method Details
-
getId
- Specified by:
getId
in interfaceIdentified
- Returns:
- id
-
getCoercer
-