|Rules regarding CrossReferences [message #990074]
||Mon, 10 December 2012 13:04
| Robert Wild
Registered: August 2012
Given this simple example:|
"class" name=ID ("extends" parent=[Class])?
What's the best way to implement basic rules regarding the crossReference in parent=[Class]. Rules like no self-reference and no cycles.
I know of two possibilities:
1. I could define these rules in a custom validator, but then a custom ProposalProvider is necessary, too. One Rule has to be implemented in two places.
2. Or I could use a custom ScopingProvider, but then I cannot provide meaningful error messages. It would always say "reference not found" which isn't helping a lot.
Is there some other way?
Powered by FUDForum
. Page generated in 0.01844 seconds