com.jmex.xml.types
Class SchemaDuration

java.lang.Object
  extended by com.jmex.xml.types.SchemaCalendarBase
      extended by com.jmex.xml.types.SchemaDuration
All Implemented Interfaces:
SchemaType, SchemaTypeCalendar, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class SchemaDuration
extends SchemaCalendarBase

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jmex.xml.types.SchemaCalendarBase
SchemaCalendarBase.ParseContext, SchemaCalendarBase.RefInt
 
Field Summary
protected  boolean bNegative
           
 
Fields inherited from class com.jmex.xml.types.SchemaCalendarBase
DateTimePart_Date, DateTimePart_Day, DateTimePart_Month, DateTimePart_Time, DateTimePart_Year, day, hasTZ, hour, isempty, minute, month, monthStart, monthStartLeap, offsetTZ, partsecond, second, TZ_MISSING, TZ_OFFSET, TZ_UTC, year
 
Fields inherited from interface com.jmex.xml.types.SchemaTypeCalendar
CALENDAR_VALUE_DATE, CALENDAR_VALUE_DATETIME, CALENDAR_VALUE_DURATION, CALENDAR_VALUE_TIME, CALENDAR_VALUE_UNDEFINED
 
Constructor Summary
SchemaDuration()
           
SchemaDuration(int newyear, int newmonth, int newday, int newhour, int newminute, int newsecond, double newpartsecond, boolean newisnegative)
           
SchemaDuration(SchemaDuration newvalue)
           
SchemaDuration(SchemaType newvalue)
           
SchemaDuration(SchemaTypeCalendar newvalue)
           
SchemaDuration(java.lang.String newvalue)
           
 
Method Summary
 void assign(SchemaType newvalue)
           
 boolean booleanValue()
           
 int calendarType()
           
 java.lang.Object clone()
           
 SchemaDateTime dateTimeValue()
           
 SchemaDate dateValue()
           
 SchemaDuration durationValue()
           
 int getDay()
           
 long getDayTimeValue()
           
 int getHour()
           
 int getMillisecond()
           
 int getMinute()
           
 int getMonth()
           
 double getPartSecond()
           
 int getSecond()
           
 int getYear()
           
 int getYearMonthValue()
           
 boolean isNegative()
           
 void parse(java.lang.String s)
           
 void setDay(int newday)
           
 void setDayTimeValue(long l)
           
 void setEmpty()
           
 void setHour(int newhour)
           
 void setMillisecond(int newmillisecond)
           
 void setMinute(int newminute)
           
 void setMonth(int newmonth)
           
 void setNegative(boolean newisnegative)
           
 void setPartSecond(double newpartsecond)
           
 void setSecond(int newsecond)
           
 void setYear(int newyear)
           
 void setYearMonthValue(int l)
           
 SchemaTime timeValue()
           
 java.lang.String toString()
           
 
Methods inherited from class com.jmex.xml.types.SchemaCalendarBase
compareTo, compareTo, equals, getApproximatedTotal, getDate, getTimeValue, hashCode, isEmpty, isNull, length, parseDate, parseDateTime, parseTime, setDateFromTimeValue, setInternalValues, setNull, setTimeFromTimeValue, toDateString, toTimeString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

bNegative

protected boolean bNegative
Constructor Detail

SchemaDuration

public SchemaDuration()

SchemaDuration

public SchemaDuration(SchemaDuration newvalue)

SchemaDuration

public SchemaDuration(int newyear,
                      int newmonth,
                      int newday,
                      int newhour,
                      int newminute,
                      int newsecond,
                      double newpartsecond,
                      boolean newisnegative)

SchemaDuration

public SchemaDuration(java.lang.String newvalue)

SchemaDuration

public SchemaDuration(SchemaType newvalue)

SchemaDuration

public SchemaDuration(SchemaTypeCalendar newvalue)
Method Detail

getYear

public int getYear()

getMonth

public int getMonth()

getDay

public int getDay()

getHour

public int getHour()

getMinute

public int getMinute()

getSecond

public int getSecond()

getPartSecond

public double getPartSecond()

getMillisecond

public int getMillisecond()

isNegative

public boolean isNegative()

setYear

public void setYear(int newyear)

setMonth

public void setMonth(int newmonth)

setDay

public void setDay(int newday)

setHour

public void setHour(int newhour)

setMinute

public void setMinute(int newminute)

setSecond

public void setSecond(int newsecond)

setPartSecond

public void setPartSecond(double newpartsecond)

setMillisecond

public void setMillisecond(int newmillisecond)

setNegative

public void setNegative(boolean newisnegative)

assign

public void assign(SchemaType newvalue)

setEmpty

public void setEmpty()
Specified by:
setEmpty in interface SchemaType
Overrides:
setEmpty in class SchemaCalendarBase

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface SchemaType
Overrides:
toString in class java.lang.Object

booleanValue

public boolean booleanValue()
Specified by:
booleanValue in interface SchemaType
Overrides:
booleanValue in class SchemaCalendarBase

parse

public void parse(java.lang.String s)

calendarType

public int calendarType()

durationValue

public SchemaDuration durationValue()
Specified by:
durationValue in interface SchemaTypeCalendar
Overrides:
durationValue in class SchemaCalendarBase

dateTimeValue

public SchemaDateTime dateTimeValue()

dateValue

public SchemaDate dateValue()

timeValue

public SchemaTime timeValue()

getDayTimeValue

public long getDayTimeValue()

getYearMonthValue

public int getYearMonthValue()

setYearMonthValue

public void setYearMonthValue(int l)

setDayTimeValue

public void setDayTimeValue(long l)