| java.lang.Object org.apache.xerces.validators.datatype.AbstractDatatypeValidator org.apache.xerces.validators.datatype.AbstractNumericFacetValidator org.apache.xerces.validators.datatype.DateTimeValidator org.apache.xerces.validators.datatype.MonthDatatypeValidator
MonthDatatypeValidator | public class MonthDatatypeValidator extends DateTimeValidator (Code) | | Validator for datatype (W3C Schema Datatypes)
author: Elena Litani version: $Id: MonthDatatypeValidator.java,v 1.5 2001/06/21 20:56:06 elena Exp $ |
compareDates | protected short compareDates(int[] date1, int[] date2)(Code) | | Overwrite compare algorithm to optimize month comparison
Parameters: date1 - Parameters: date2 - |
dateToString | protected String dateToString(int[] date)(Code) | | Converts month object representation to String
Parameters: date - month object lexical representation of month: --MM-- with an optional time zone sign |
parse | protected int[] parse(String str, int[] date) throws SchemaDateTimeException(Code) | | Parses, validates and computes normalized version of gMonth object
Parameters: str - The lexical representation of gMonth object --MM--with possible time zone Z or (-),(+)hh:mm Parameters: date - uninitialized date object normalized date representation exception: Exception - Invalid lexical representation |
Methods inherited from org.apache.xerces.validators.datatype.DateTimeValidator | protected void assignAdditionalFacets(String key, Hashtable facets) throws InvalidDatatypeFacetException(Code)(Java Doc) protected void checkContent(String content, Object State)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public int compare(String content1, String content2)(Code)(Java Doc) protected short compareDates(int[] date1, int[] date2, boolean strict)(Code)(Java Doc) protected short compareOrder(int[] date1, int[] date2)(Code)(Java Doc) protected int compareValues(Object value1, Object value2)(Code)(Java Doc) protected String dateToString(int[] date)(Code)(Java Doc) protected int fQuotient(int a, int b)(Code)(Java Doc) protected int fQuotient(int temp, int low, int high)(Code)(Java Doc) protected int findUTCSign(int start, int end)(Code)(Java Doc) protected void getDate(int start, int end, int[] date) throws RuntimeException(Code)(Java Doc) protected String getMaxExclusive(boolean isBase)(Code)(Java Doc) protected String getMaxInclusive(boolean isBase)(Code)(Java Doc) protected String getMinExclusive(boolean isBase)(Code)(Java Doc) protected String getMinInclusive(boolean isBase)(Code)(Java Doc) protected void getTime(int start, int end, int[] data) throws RuntimeException(Code)(Java Doc) protected void getTimeZone(int[] data, int sign) throws RuntimeException(Code)(Java Doc) protected void getYearMonth(int start, int end, int[] date) throws RuntimeException(Code)(Java Doc) protected int indexOf(int start, int end, char ch)(Code)(Java Doc) protected void initializeValues()(Code)(Java Doc) protected int maxDayInMonthFor(int year, int month)(Code)(Java Doc) protected int mod(int a, int b, int quotient)(Code)(Java Doc) protected int modulo(int temp, int low, int high)(Code)(Java Doc) protected void normalize(int[] date)(Code)(Java Doc) abstract protected int[] parse(String content, int[] date) throws SchemaDateTimeException(Code)(Java Doc) protected int parseInt(int start, int end) throws NumberFormatException(Code)(Java Doc) protected int parseIntYear(int end)(Code)(Java Doc) protected void parseTimeZone(int end, int[] date) throws RuntimeException(Code)(Java Doc) protected void reportError(String msg, String value)(Code)(Java Doc) protected void resetBuffer(String str)(Code)(Java Doc) protected void resetDateObj(int[] data)(Code)(Java Doc) protected void setEnumeration(Vector enumeration) throws InvalidDatatypeValueException(Code)(Java Doc) protected void setMaxExclusive(String value)(Code)(Java Doc) protected void setMaxInclusive(String value)(Code)(Java Doc) protected void setMinExclusive(String value)(Code)(Java Doc) protected void setMinInclusive(String value)(Code)(Java Doc) public Object validate(String content, Object state) throws InvalidDatatypeValueException(Code)(Java Doc) protected void validateDate(int[] date, String content) throws InvalidDatatypeValueException(Code)(Java Doc) protected void validateDateTime(int[] data)(Code)(Java Doc)
|
|
|