|
Primavera Integration API 7.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 java.sql.Date |
getDateFromString(java.lang.String sDateTime)
Gets a Date representation of a String that conforms to the xsd:dateTime format defined in XML Schema. |
static java.lang.String |
getStringFromDate(java.util.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 java.sql.Date getDateFromString(java.lang.String sDateTime) throws InvalidValueException
sDateTime
- the string to convert
InvalidValueException
- if the given string was not of the proper xsd:dateTime formatpublic static java.lang.String getStringFromDate(java.util.Date date)
date
- the date to convert
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |