Class PartialStructRule
java.lang.Object
nz.org.riskscape.engine.types.eqrule.PartialStructRule
- All Implemented Interfaces:
Identified
,EquivalenceRule
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.types.eqrule.EquivalenceRule
getId
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
-
Constructor Details
-
PartialStructRule
public PartialStructRule()
-
-
Method Details
-
getCoercer
- Specified by:
getCoercer
in interfaceEquivalenceRule
-
describeMismatch
Drills down into why a struct mismatch occurred. As the user data can often contain a lot of struct members, it helps to pinpoint which struct members in particular we didn't like.
- Parameters:
given
- the struct data provided by the userexpected
- what was expected (i.e. by a function)- Returns:
- a list of Problems that describe the mismatch
-