org.exolab.castor.types
Class Century
- java.io.Serializable
Describe an XML schema Century
The date type is derived from time period by setting up the facet :
Version:
- Arnaud Blandin
- Serialized Form
static Object | parse(String str)- parse a String and convert it into a java.lang.Object
|
static Century | parseCentury(String str)- parse a String and convert it into a Century
|
void | setDay(short day)
|
void | setHour(short hour)- set the hour field for this recurringDuration
|
void | setMinute(short minute)- set the minute field for this recurringDuration
|
void | setMonth(short month)
|
void | setSecond(short second, short millsecond)- set the second field for this recurringDuration
|
void | setYear(short year)
|
void | setZone(short hour, short minute)- set the time zone fields for this recurringDuration
|
void | setZoneNegative()- set the time zone negative field to true
|
java.util.Date | toDate()
|
String | toString()- convert this Year to a string
The format is defined by W3C XML Schema draft and ISO8601
i.e (+|-)CC
|
equal, equals, getCentury, getDay, getMonth, getValues, getYear, isGreater, isLeap, parse, parseRecurringDuration, setCentury, setDay, setMonth, setValues, setYear, toDate, toString |
equal, equals, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getValues, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setHour, setMinute, setNegative, setPeriod, setPeriod, setSecond, setUTC, setValues, setZone, setZoneNegative |
parse
public static Object parse(String str)
throws ParseException parse a String and convert it into a java.lang.Object
- parse in interface RecurringDuration
str - the string to parse
- the java.lang.Object represented by the string
parseCentury
public static Century parseCentury(String str)
throws ParseException parse a String and convert it into a Century
str - the string to parse
- the Century represented by the string
toDate
public java.util.Date toDate()
throws ParseException- toDate in interface RecurringDuration
toString
public String toString()
convert this Year to a string
The format is defined by W3C XML Schema draft and ISO8601
i.e (+|-)CC
- toString in interface RecurringDuration
- a string representing this Century
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com