com.jmex.xml.types
Class SchemaDuration
java.lang.Object
com.jmex.xml.types.SchemaCalendarBase
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
| 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 |
| 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 |
bNegative
protected boolean bNegative
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)
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)