|
Primavera Integration API 8.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.util.XSDHelper
public final class XSDHelper
Helper class for converting XSD dateTime format strings to Java dates, and vice-versa.
Method Summary | |
---|---|
static Date |
getDateFromString(String sDateTime)
Gets a Date representation of a String that conforms to the xsd:dateTime format defined in XML Schema. |
static String |
getStringFromDate(Date date)
Gets a String representation of a Date, conforming to the xsd:dateTime format defined in XML Schema. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Date getDateFromString(String sDateTime) throws InvalidValueException
sDateTime
- the string to convert
InvalidValueException
- if the given string was not of the proper xsd:dateTime formatpublic static String getStringFromDate(Date date)
date
- the date to convert
|
Primavera Integration API 8.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |