I use Sapphire 0.7, and I have a property called "Resolution" which user should be allowed to write a Matlab Expression in it like:
I already made a function called "parseResolution" that takes a String input and returns either a valid double or null if parsing failed.
The problem is, many other properties validation is based upon this "Resolution" property, and I would like to avoid calling my custom "parseResolution" each time I implement a new Validation Service. Also I would like to make use of the new @Validation for all other properties that are dependent upon "Resolution".
What I'm thinking of is somehow changing how ".content()" works. Is there anything like that?
You cannot access an arbitrary method in Sapphire EL, but you should be able to write a conversion service implementation from your Resolution object to whatever is the data type of (Physical - Offset). Then it's just...