From: Nick B. <ni...@co...> - 2001-10-07 02:58:11
|
> >> Okay, here's what I want to give FormProc: >> >> IsEmailRule (that doesn't require Java Mail) >> StringLengthRule (whether a String is in a range of size) >> StringMatchesRule (whether a String contains a POSIX regex) >> IntegerRangeRule (whether a String represents an Integer between x and >> y) DoubleRangeRule (obvious) >> OrRule (whether a String is one of a set domain of values) >> NegateRule (will accept any Rule and return true if false, false if >> true) AndRule (will accept a collection of Rules and process each one >> to pass) IsCreditCardNumRule (will do mod-10 checksum and credit card >> logic to see if >> the field looks like a valid credit card) >> >> Sound good for starters? > > Sounds very good. JPublish already has the Jakarta ORO package > included so feel free to use that for your regular expressions. I am > looking forward to receiving your code. I saw that. Can you give me a 25-word how-to on how to _configure_ a rule? I'll be reading the source, but I'm not sure what to expect. IE I'd like to have IntegerRange rule accept attributes describing the range requested from the config xml file. How should that look? Don't worry about details, just the very high level. I can get the rest from the source. > Have you tried the SourceForge CVS yet? I have added your SourceForge > account to the developer list and I am curious if you have write access > to the repository. > > -Anthony > I would prefer for the time being have you review, approve and commit my changes until we have a more solid working relationship, ie: so that you know what to expect and I know what to expect. Maybe in a few more rounds of contributions from me and then it makes sense for me to have full commit status. Sound good? -Nick |