Progress on validator framework

0 views
Skip to first unread message

Tom Chiverton

unread,
Feb 1, 2009, 10:21:11 AM2/1/09
to reacto...@googlegroups.com
OK, so as of now, you can give a 'validateAs' string in the field tag,
and this makes it's way into the metadata (i.e. retrievable with
getObjectMetadata() ).
There are also isValid() and isValid<for each field>() methods in the
Record object that call the same base method in the abstractRecord
base class (with appropriate loop for the isValid() method).
There is an interface and one concrete class for validators.

Next hack-a-thon will be getting some sort of validatorFactory that
can return singleton's of each validator CFC, given a 'validateAs'
string from the XML.
Wire that in and it should just work.

--
Tom

Reply all
Reply to author
Forward
0 new messages