Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

com/ohrasys/cad/bnf/validator/NumberValidator.java

Go to the documentation of this file.
00001 package com.ohrasys.cad.bnf.validator;
00002 import com.ohrasys.cad.bnf.*;
00003 
00004 public class NumberValidator
00005   extends BNFOneOfManyRequiredTest {
00006   private static final String symbols = "0123456789";
00007 
00008   public NumberValidator()
00009     throws BNFTestException {super(createTests());}
00010 
00011   private static BNFTestImplementor[] createTests()
00012     throws BNFTestException {
00013     BNFTestImplementor result[] = new BNFTestImplementor[symbols.length()];
00014     for(int i = 0; i < symbols.length(); i++)
00015       result[i] = new BNFNoFallthruTest(symbols.charAt(i));
00016     return result;
00017   }
00018 }

Generated on Sun Nov 13 10:13:03 2005 for JavaBackus-NaurTestAPI(JBNT) by  doxygen 1.4.2