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