1 22 23 package org.xquark.schema.datatypes; 24 25 import org.xquark.schema.SchemaException; 26 import org.xquark.schema.validation.ValidationContextProvider; 27 28 29 class AnySimpleType extends PrimitiveType { 30 private static final String RCSRevision = "$Revision: 1.2 $"; 31 private static final String RCSName = "$Name: $"; 32 AnySimpleType() { 33 super("anySimpleType", PrimitiveType.ANYSIMPLETYPE); 34 } 35 36 public void checkFacets(Object valueSpace) throws SchemaException { 37 return; 38 } 39 40 protected Object toValueSpace(String value, ValidationContextProvider context) throws SchemaException { 41 return value.toString(); 42 } 43 44 protected Object toValidType(Object data) { 45 return data.toString(); 46 } 47 48 } 49 | Popular Tags |