1 2 58 59 package org.enhydra.apache.xerces.validators.datatype; 60 61 import java.util.Hashtable ; 62 63 69 public class DateDatatypeValidator extends DateTimeValidator { 70 71 public DateDatatypeValidator() throws InvalidDatatypeFacetException{ 72 super(); 73 } 74 75 76 public DateDatatypeValidator ( DatatypeValidator base, Hashtable facets, 77 boolean derivedByList ) throws InvalidDatatypeFacetException { 78 super (base, facets, derivedByList); 79 } 80 81 90 protected int[] parse(String str, int[] date) throws SchemaDateTimeException{ 91 resetBuffer(str); 92 94 if ( date == null ) { 95 date = new int[TOTAL_SIZE]; 96 } 97 resetDateObj(date); 98 100 getDate(fStart, fEnd, date); 101 parseTimeZone (fEnd, date); 102 103 validateDateTime(date); 106 107 if ( date[utc]!=0 && date[utc]!='Z' ) { 108 normalize(date); 109 } 110 return date; 111 } 112 113 114 } 115 116 117 | Popular Tags |