org.exolab.castor.types

Class Month

public class Month extends TimePeriod

Describe an XML schema Month.

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

Version: $Revision: 5951 $

Author: Arnaud Blandin

Constructor Summary
Month()
Method Summary
static Objectparse(String str)
static MonthparseMonth(String str)
parse a String and convert it into a Month
voidsetDay(short day)
voidsetHour(short hour)
voidsetMinute(short minute)
voidsetSecond(short second, short millsecond)
voidsetZone(short hour, short minute)
voidsetZoneNegative()
DatetoDate()
StringtoString()
convert this Month to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CCYY-MM

Constructor Detail

Month

public Month()

Method Detail

parse

public static Object parse(String str)

parseMonth

public static Month parseMonth(String str)
parse a String and convert it into a Month

Parameters: str the string to parse

Returns: the Month 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)

setSecond

public void setSecond(short second, short millsecond)

setZone

public void setZone(short hour, short minute)

setZoneNegative

public void setZoneNegative()

toDate

public Date toDate()

toString

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

Returns: a string representing this Month

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