KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.thaiopensource.datatype.xsd;
2
3 import org.relaxng.datatype.ValidationContext;
4
5 class EntityDatatype extends NCNameDatatype {
6   boolean allowsValue(String JavaDoc str, ValidationContext vc) {
7     return vc.isUnparsedEntity(str);
8   }
9
10   Object JavaDoc getValue(String JavaDoc str, ValidationContext vc) {
11     if (!allowsValue(str, vc))
12       return null;
13     return super.getValue(str, vc);
14   }
15 }
16
Popular Tags