KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.thaiopensource.datatype.xsd;
2
3 import com.thaiopensource.util.Uri;
4 import org.relaxng.datatype.ValidationContext;
5
6 class AnyUriDatatype extends TokenDatatype {
7   public boolean lexicallyAllows(String JavaDoc str) {
8     return Uri.isValid(str);
9   }
10
11   public boolean alwaysValid() {
12     return false;
13   }
14 }
15
Popular Tags