1 16 17 package org.apache.xerces.impl.dv; 18 19 import org.apache.xerces.xs.XSSimpleTypeDefinition; 20 21 34 public interface XSSimpleType extends XSSimpleTypeDefinition { 35 36 41 42 public static final short WS_PRESERVE = 0; 43 44 public static final short WS_REPLACE = 1; 45 46 public static final short WS_COLLAPSE = 2; 47 48 53 54 public static final short PRIMITIVE_STRING = 1; 55 56 public static final short PRIMITIVE_BOOLEAN = 2; 57 58 public static final short PRIMITIVE_DECIMAL = 3; 59 60 public static final short PRIMITIVE_FLOAT = 4; 61 62 public static final short PRIMITIVE_DOUBLE = 5; 63 64 public static final short PRIMITIVE_DURATION = 6; 65 66 public static final short PRIMITIVE_DATETIME = 7; 67 68 public static final short PRIMITIVE_TIME = 8; 69 70 public static final short PRIMITIVE_DATE = 9; 71 72 public static final short PRIMITIVE_GYEARMONTH = 10; 73 74 public static final short PRIMITIVE_GYEAR = 11; 75 76 public static final short PRIMITIVE_GMONTHDAY = 12; 77 78 public static final short PRIMITIVE_GDAY = 13; 79 80 public static final short PRIMITIVE_GMONTH = 14; 81 82 public static final short PRIMITIVE_HEXBINARY = 15; 83 84 public static final short PRIMITIVE_BASE64BINARY = 16; 85 86 public static final short PRIMITIVE_ANYURI = 17; 87 88 public static final short PRIMITIVE_QNAME = 18; 89 90 public static final short PRIMITIVE_PRECISIONDECIMAL = 19; 91 92 public static final short PRIMITIVE_NOTATION = 20; 93 94 102 public short getPrimitiveKind(); 103 104 113 public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) 114 throws InvalidDatatypeValueException; 115 116 127 public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) 128 throws InvalidDatatypeValueException; 129 130 137 public void validate(ValidationContext context, ValidatedInfo validatedInfo) 138 throws InvalidDatatypeValueException; 139 140 153 public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) 154 throws InvalidDatatypeFacetException; 155 156 163 public boolean isEqual(Object value1, Object value2); 164 165 180 182 190 public boolean isIDType(); 191 192 199 public short getWhitespace() throws DatatypeException; 200 } 201 | Popular Tags |