DateDV.java revision 286
286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 1999-2002,2004,2005 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * Validator for <date> datatype (W3C Schema datatypes) 286N/A * @author Gopal Sharma, SUN Microsystems Inc. 286N/A * Parses, validates and computes normalized version of dateTime object 286N/A * @param str The lexical representation of dateTime object CCYY-MM-DD 286N/A * with possible time zone Z or (-),(+)hh:mm 286N/A * @return normalized dateTime representation 286N/A * @exception SchemaDateTimeException Invalid lexical representation 286N/A //validate and normalize 286N/A //REVISIT: do we need SchemaDateTimeException? 286N/A //save unnormalized values