1 57 58 package org.enhydra.apache.xerces.validators.datatype; 59 60 61 71 public interface DatatypeValidator { 72 public static final short FACET_LENGTH = 0x1<<0; 73 public static final short FACET_MINLENGTH = 0x1<<1; 74 public static final short FACET_MAXLENGTH = 0x1<<2; 75 public static final short FACET_PATTERN = 0x1<<3; 76 public static final short FACET_ENUMERATION = 0x1<<4; 77 public static final short FACET_MAXINCLUSIVE = 0x1<<5; 78 public static final short FACET_MAXEXCLUSIVE = 0x1<<6; 79 public static final short FACET_MININCLUSIVE = 0x1<<7; 80 public static final short FACET_MINEXCLUSIVE = 0x1<<8; 81 public static final short FACET_TOTALDIGITS = 0x1<<9; 82 public static final short FACET_FRACTIONDIGITS = 0x1<<10; 83 public static final short FACET_ENCODING = 0x1<<11; 84 public static final short FACET_DURATION = 0x1<<12; 85 public static final short FACET_PERIOD = 0x1<<13; 86 public static final short FACET_WHITESPACE = 0x1<<14; 87 88 public static final String FACET_FIXED = "fixed"; 91 92 public static final short PRESERVE = 0; 94 public static final short REPLACE = 1; 95 public static final short COLLAPSE = 2; 96 97 98 99 111 public Object validate(String content, Object state ) throws InvalidDatatypeValueException; 112 113 public short getWSFacet (); 114 115 public DatatypeValidator getBaseValidator(); 117 118 128 public int compare( String value1, String value2); 129 130 } 131 | Popular Tags |