org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime
Class TimeJRep
java.lang.Object
|
+--org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime.TimeJRep
- public class TimeJRep
- extends java.lang.Object
Underlying representation used for date/time/period classes
- Version:
- $Id: TimeJRep.java,v 1.1.2.1 2000/10/28 00:04:47 jeffreyr Exp $
- Author:
- Leonard C. Berman, Jeffrey Rodriguez
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
CURRENT
public static final int CURRENT
YEAR_OF_CURRENT_DECADE
public static final int YEAR_OF_CURRENT_DECADE
indicatorChar
public static final char[] indicatorChar
indicator
public static final java.lang.String indicator
message
public java.lang.String message
TimeJRep
public TimeJRep()
compareTo
public java.lang.Integer compareTo(TimeJRep other)
- comparison returns null for unequal calendarType, utc or if order is not determined before precision differs
getCalendarType
public char getCalendarType()
getField
public static final java.lang.String getField(Match m,
int i)
getMessage
public java.lang.String getMessage()
getUTCHour
public java.lang.Integer getUTCHour()
getUTCMinute
public java.lang.Integer getUTCMinute()
getUTCSign
public char getUTCSign()
getWhen
public java.lang.Integer getWhen(int i)
isUTC
public boolean isUTC()
isValid
public boolean isValid()
mergeTime
public boolean mergeTime(Match m)
- Fills the when[] from the match. Note the time match is handled differently
than other matches. In the time match, 1 is string of leading '-'s, , 2,3
correspond to the first digit pair and colon; 4,5 to second digit pair, colon
6,7 corresponds to the digit pair which (may) have a decimal part. 2,4 are digits
if they are non-null. If 5 == ':', 3 must == ':'.
- Parameters:
calMatch
- com.ibm.regex.Match- Returns:
- boolean
reset
public final void reset()
setCalendarType
protected void setCalendarType(char newCalendarType)
setMessage
public void setMessage(java.lang.String newMessage)
setUTCHour
public void setUTCHour(java.lang.Integer h)
setUTCMinute
public void setUTCMinute(java.lang.Integer h)
setUTCSign
public void setUTCSign(char c)
setWhen
public void setWhen(int i,
java.lang.Integer v)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.