KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > datatype > xsd > IntegerRestrictDatatype


1 package com.thaiopensource.datatype.xsd;
2
3 class IntegerRestrictDatatype extends ScaleRestrictDatatype {
4   IntegerRestrictDatatype(DatatypeBase base) {
5     super(base, 0);
6   }
7
8   boolean lexicallyAllows(String JavaDoc str) {
9     return super.lexicallyAllows(str) && str.charAt(str.length() - 1) != '.';
10   }
11 }
12
Popular Tags