|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xtvdclient.xtvd.datatypes.AbstractDataType
net.sf.xtvdclient.xtvd.datatypes.XtvdDate
public class XtvdDate
A class that represents a date datatype.
Field Summary |
---|
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType |
---|
END_OF_LINE |
Constructor Summary | |
---|---|
XtvdDate()
Default constructor. |
|
XtvdDate(java.util.Date date)
Create a new instance of the class with the specified date value |
|
XtvdDate(java.lang.String date)
Create a new instance of the class with the specified string representation of the date data type. |
Method Summary | |
---|---|
java.util.Date |
getDate()
Returns date . |
int |
hashCode()
Returns a hash code value for this class. |
void |
setDate(java.util.Date date)
Set date . |
void |
setDate(java.lang.String date)
Set date by parsing the date string representation. |
java.lang.String |
toString()
Over-ridden implementation. |
Methods inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType |
---|
compareTo, equals, replaceSpecialCharacters, replaceSpecialCharacters |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XtvdDate()
public XtvdDate(java.lang.String date) throws java.text.ParseException
date
- The date representation which is
to be parsed.
java.text.ParseException
- If the date representation is invalid.public XtvdDate(java.util.Date date)
date
- The date to use to initialise this class.Method Detail |
---|
public java.lang.String toString()
date
value.
toString
in class java.lang.Object
public int hashCode()
date
field.
hashCode
in class java.lang.Object
public final java.util.Date getDate()
date
.
public final void setDate(java.util.Date date)
date
.
date
- The value to set.public final void setDate(java.lang.String date) throws java.text.ParseException
date
by parsing the date string representation.
date
- The value to set.
java.text.ParseException
- If the date representation
specified is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |