|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.wasp.serialization.xsdbuiltin.DateTimeBase
org.idoox.wasp.serialization.xsdbuiltin.GMonth
The class represents XMLSchema gMonth
type.
Field Summary |
Fields inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase |
isNegative, timeZone |
Constructor Summary | |
GMonth(int month,
TimeZone timeZone)
Constructor. |
|
GMonth(java.lang.String gMonth)
Constructor that initializes this object. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
int |
getMonth()
Returns month member of this object in the interval 0-11. |
int |
hashCode()
|
void |
setParams(int month,
TimeZone timeZone)
Sets parameters of this object. |
java.lang.String |
toString()
Deserializes this object to XSD string that represents month. |
Methods inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase |
getTimeZone, hasNegativeValue, inputMonth, outputMonth, setDefaultTimeZone, setParams |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GMonth(int month, TimeZone timeZone) throws DateTimeException
month
- a value of month in the interval 0-11.timeZone
- a timeZone value to set.
DateTimeException
- thrown when parameters are invalid.public GMonth(java.lang.String gMonth) throws DateTimeException
Note that in SSJ versions 5.5 and earlier, this constructor accepted only the format --MM--, which was described in XML Schema version 02 May 2001. However, the correct format is --MM, in compliance with ISO 8601 and used in more recent versions of XML Schema. This method accepts both formats, to ensure backward compatibility. To disable the warning for the old format, set the JVM property -Dssj.xmlschema2001.gmonth=true.
gMonth
- XML Schema representation of month.
DateTimeException
- Description of ExceptionMethod Detail |
public void setParams(int month, TimeZone timeZone) throws DateTimeException
month
- a value of month in interval (0-11).timeZone
- a timeZone value to set.
DateTimeException
- thrown when parameters are invalid.public java.lang.String toString()
See also the note for GMonth(String)
. The new format
is used, unless -Dssj.xmlschema2001.gmonth=true is set.
Note, however, that it is not recommended to depend on the format
of the string returned by this method.
public int getMonth()
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |