1 57 58 package org.enhydra.apache.xerces.validators.datatype; 59 60 import java.util.Hashtable ; 61 62 67 public class AnySimpleType extends AbstractDatatypeValidator { 68 public AnySimpleType() throws InvalidDatatypeFacetException{ 69 } 70 71 public AnySimpleType(DatatypeValidator base, Hashtable facets, boolean derivedByList) 72 throws InvalidDatatypeFacetException { 73 74 fBaseValidator = base; 75 76 if (facets != null && facets.size() != 0) { 77 throw new InvalidDatatypeFacetException(getErrorString(DatatypeMessageProvider.ILLEGAL_ANYSIMPLETYPE_FACET, 78 DatatypeMessageProvider.MSG_NONE, null)); 79 } 80 } 81 82 public Object validate(String content, Object state ) 83 throws InvalidDatatypeValueException { 84 return null; 85 } 86 87 public int compare( String value1, String value2 ) { 88 return -1; 89 } 90 91 92 public Object clone() throws CloneNotSupportedException { 93 throw new CloneNotSupportedException ("clone() is not supported in "+this.getClass().getName()); 94 } 95 96 public short getWSFacet (){ 97 return DatatypeValidator.PRESERVE; 98 } 99 } 100 | Popular Tags |