|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.di.connector.maximo.util.typeconverter.DateConverter
public final class DateConverter
Maximo Type Converter for Date
types.
Date
,
SimpleDateFormat
Method Summary | |
---|---|
static DateConverter |
getInstance()
Returns an instance of DateConverter . |
java.lang.String |
toString(java.lang.Object value)
Returns a String object representing the specified value
. |
java.lang.Object |
valueOf(java.lang.String value)
Returns a Date object representing the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DateConverter getInstance()
DateConverter
.
DateConverter
public java.lang.String toString(java.lang.Object value) throws MxConnTypeConvertionException
String
object representing the specified value
.
toString
in interface IMxTypeConverter
value
- value to be converted, must be a Date
object or a
String
object with the format
"2007-08-10'T'23:45:15-03:00"
String
object representing the specified value
MxConnTypeConvertionException
- if the specified value is not a instance of Date
nor
String
MxConnTypeConvertionException
- if the specified value is a String
object that does
not comply with the format
"2007-08-10'T'23:45:15-03:00"
public java.lang.Object valueOf(java.lang.String value) throws MxConnTypeConvertionException
Date
object representing the specified value.
valueOf
in interface IMxTypeConverter
value
- value to be converted, must comply with the format:
"2007-08-10'T'23:45:15-03:00"
Date
object representing the specified value
MxConnTypeConvertionException
- if the specified value does not comply with the expected
format
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |