org.exolab.castor.types
Class Year
- java.io.Serializable
Describe an XML schema Year
The date type is derived from time period by setting up the facet :
static Object | parse(String str)- parse a String and convert it into a java.lang.Object
|
static Year | parseYear(String str)- parse a String and convert it into a Year
|
void | setDay(short day)
|
void | setHour(short hour)
|
void | setMinute(short minute)
|
void | setMonth(short month)
|
void | setSecond(short second, short millsecond)
|
void | setZone(short hour, short minute)
|
void | setZoneNegative()
|
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 (+|-)CCYY
|
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
parseYear
public static Year parseYear(String str)
throws ParseException parse a String and convert it into a Year
str - the string to parse
- the Year represented by the string
toString
public String toString()
convert this Year to a string
The format is defined by W3C XML Schema draft and ISO8601
i.e (+|-)CCYY
- toString in interface RecurringDuration
- a string representing this Month
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com