org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime
Class ISODateTime

java.lang.Object
  |
  +--org.apache.xerces.impl.validation.datatypes.eTypes.Models.AbstractProperty
        |
        +--org.apache.xerces.impl.validation.datatypes.eTypes.Models.PartialOrder
              |
              +--org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime.ISODateTime
Direct Known Subclasses:
ISO8601, ISODate, ISOPeriod, ISOTime

public class ISODateTime
extends PartialOrder
implements StringProperty

Handles DateTime part of ISO8601.

comparison returns null for unequal calendarType or if order is not determined before precision differs

Author:
Leonard C. Berman, Jeffrey Rodriguez

Inner classes inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.AbstractProperty
AbstractProperty.AbstractSummary
 
Field Summary
static int classNumberSubProperties
           
 
Fields inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.PartialOrder
classNumberSubProperties, CLOSED_ABOVE, CLOSED_BELOW, MAX, MIN
 
Fields inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.AbstractProperty
classNumberSubProperties, ht, required
 
Fields inherited from interface org.apache.xerces.impl.validation.datatypes.eTypes.Interfaces.StringProperty
classNumberSubProperties, MAX_LEN, MIN_LEN, PATTERN
 
Constructor Summary
ISODateTime()
           
ISODateTime(java.lang.String name)
           
 
Method Summary
 java.lang.Integer compareTo(java.lang.Object param)
          comparison returns null for unequal calendarType, utc or if order is not determined before precision differs
 void enableSubProp(java.lang.String name)
          The next method is included to remind developer's that they are responsible for setting the eval and merge functions for subProp's for classes which they define.
 char getCalendarType()
          Calendar types are ISO8601Pattern.{calendar,ordinal,week,dayOfTheWeek}
 boolean isDate()
           
 boolean isTime()
           
 boolean isUTC()
           
static void main(java.lang.String[] args)
           
 boolean matchDate(java.lang.String str)
          Determines whether str is a valid ISO8601 date
 boolean matchTime(java.lang.String str)
          Determines whether str is a valid ISO8601 time
 void resetRep()
           
 boolean validate(java.lang.Object obj)
          If 'T' does not occur in str, and str is not an ISODate, this checks returns true if str is an ISOTime
 
Methods inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.PartialOrder
getBound, getClosed, glb, gt, isBounded, isClosed, lt, lub, merge, merge, setBound, setClosed
 
Methods inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.AbstractProperty
accumulate, add2Report, clone, getJClass, getName, getPossible, getReport, getSubProp, getSubPropEval, getSubPropMerge, getSubPropName, getSubPropNameIndex, merge, msg, resetAccumulator, resetConstraint, resetInstance, setJClass, setName, setPossible, setRequired, setSubProp, setSubProp, setSubPropEval, setSubPropMerge, setSubPropName, toString, twin
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classNumberSubProperties

public static final int classNumberSubProperties
Constructor Detail

ISODateTime

public ISODateTime()

ISODateTime

public ISODateTime(java.lang.String name)
Method Detail

compareTo

public java.lang.Integer compareTo(java.lang.Object param)
comparison returns null for unequal calendarType, utc or if order is not determined before precision differs
Overrides:
compareTo in class PartialOrder
Parameters:
param - com.ibm.eTypes.Interfaces.PO_IF
Returns:
java.lang.Integer

enableSubProp

public void enableSubProp(java.lang.String name)
Description copied from class: AbstractProperty
The next method is included to remind developer's that they are responsible for setting the eval and merge functions for subProp's for classes which they define.
Overrides:
enableSubProp in class AbstractProperty

getCalendarType

public char getCalendarType()
Calendar types are ISO8601Pattern.{calendar,ordinal,week,dayOfTheWeek}
Returns:
char

isDate

public boolean isDate()
Returns:
boolean

isTime

public boolean isTime()
Returns:
boolean

isUTC

public boolean isUTC()

main

public static void main(java.lang.String[] args)
                 throws java.io.FileNotFoundException,
                        java.io.IOException

matchDate

public boolean matchDate(java.lang.String str)
Determines whether str is a valid ISO8601 date

matchTime

public boolean matchTime(java.lang.String str)
Determines whether str is a valid ISO8601 time

resetRep

public void resetRep()

validate

public boolean validate(java.lang.Object obj)
If 'T' does not occur in str, and str is not an ISODate, this checks returns true if str is an ISOTime
Overrides:
validate in class AbstractProperty


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.