org.exolab.castor.types

Class Century

public class Century extends TimePeriod

Describe an XML schema Century

The date type is derived from time period by setting up the facet :

Version: $Revision: 5951 $

Author: Arnaud Blandin

Constructor Summary
Century()
Method Summary
static Objectparse(String str)
parse a String and convert it into a java.lang.Object
static CenturyparseCentury(String str)
parse a String and convert it into a Century
voidsetDay(short day)
voidsetHour(short hour)
voidsetMinute(short minute)
voidsetMonth(short month)
voidsetSecond(short second, short millsecond)
voidsetYear(short year)
voidsetZone(short hour, short minute)
voidsetZoneNegative()
DatetoDate()
StringtoString()
convert this Year to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CC

Constructor Detail

Century

public Century()

Method Detail

parse

public static Object parse(String str)
parse a String and convert it into a java.lang.Object

Parameters: str the string to parse

Returns: the java.lang.Object represented by the string

Throws: ParseException a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class)

parseCentury

public static Century parseCentury(String str)
parse a String and convert it into a Century

Parameters: str the string to parse

Returns: the Century represented by the string

Throws: ParseException a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class)

setDay

public void setDay(short day)

setHour

public void setHour(short hour)

setMinute

public void setMinute(short minute)

setMonth

public void setMonth(short month)

setSecond

public void setSecond(short second, short millsecond)

setYear

public void setYear(short year)

setZone

public void setZone(short hour, short minute)

setZoneNegative

public void setZoneNegative()

toDate

public Date toDate()

toString

public String toString()
convert this Year to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CC

Returns: a string representing this Century

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com