JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / com / stevesoft / pat / Validator.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (null, "com.stevesoft.pat.Validator", ["com.stevesoft.pat.patInf", "$.patInt"], function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.argsave = null;\r
5 this.pattern = ".";\r
6 Clazz.instantialize (this, arguments);\r
7 }, com.stevesoft.pat, "Validator");\r
8 Clazz.defineMethod (c$, "validate", \r
9 function (src, start, end) {\r
10 return end;\r
11 }, "com.stevesoft.pat.StringLike,~N,~N");\r
12 Clazz.defineMethod (c$, "arg", \r
13 function (s) {\r
14 return null;\r
15 }, "~S");\r
16 Clazz.defineMethod (c$, "minChars", \r
17 function () {\r
18 return  new com.stevesoft.pat.patInt (0);\r
19 });\r
20 Clazz.defineMethod (c$, "maxChars", \r
21 function () {\r
22 return  new com.stevesoft.pat.patInf ();\r
23 });\r
24 });\r