1 package org.relaxng.datatype; 2 3 25 public interface Datatype { 26 27 43 boolean isValid( String literal, ValidationContext context ); 44 45 65 void checkValid( String literal, ValidationContext context ) 66 throws DatatypeException; 67 68 84 DatatypeStreamingValidator createStreamingValidator( ValidationContext context ); 85 86 118 Object createValue( String literal, ValidationContext context ); 119 120 132 boolean sameValue( Object value1, Object value2 ); 133 134 135 142 int valueHashCode( Object value ); 143 144 145 146 147 153 public static final int ID_TYPE_NULL = 0; 154 155 162 public static final int ID_TYPE_ID = 1; 163 164 171 public static final int ID_TYPE_IDREF = 2; 172 173 180 public static final int ID_TYPE_IDREFS = 3; 181 182 203 public int getIdType(); 204 205 206 236 public boolean isContextDependent(); 237 } 238 | Popular Tags |