|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.state.ProfileDate
public final class ProfileDate
Transforms from Date to a valid string representation for the xs:dateAndTime XML Schema data type and vice versa.
It can be used to write/read a Date object to/from a profile.
| Constructor Summary | |
|---|---|
ProfileDate()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
fromXMLDateAndTime(java.lang.String date)
Transforms the input xs:dateAndTime representation in a Date object |
static java.lang.String |
toXMLDateAndTime(java.util.Date date)
Transforms the input Date in a valid string representation for the xs:dateAndTime XML Schema data type |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProfileDate()
| Method Detail |
|---|
public static java.lang.String toXMLDateAndTime(java.util.Date date)
Date in a valid string representation for the xs:dateAndTime XML Schema data type
date - the Date object to tranform
String object
public static java.util.Date fromXMLDateAndTime(java.lang.String date)
throws java.text.ParseException
Date object
date - the string representation of xs:dateAndTime (e.g. " 2009-05-12T16:46:03+02:00 ")
Date object
java.text.ParseException - if the input date is not in an valid format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||