public class DateTime extends AbstractXJdfType<String,DateTime>
| Constructor and Description |
|---|
DateTime()
Default constructor.
|
DateTime(Calendar calendar)
Custom constructor.
|
DateTime(int year,
int month,
int day)
Custom constructor.
|
DateTime(int year,
int month,
int day,
int hour,
int minute)
Custom constructor.
|
DateTime(String expression)
Custom constructor.
|
public DateTime()
public DateTime(int year,
int month,
int day)
year - The value used to set the YEAR.month - The value used to set the MONTH in year. January is "1".day - The value used to set the DAY in month.public DateTime(int year,
int month,
int day,
int hour,
int minute)
year - The value used to set the YEAR.month - The value used to set the MONTH in year. January is "1".day - The value used to set the DAY in month.hour - The value used to set the HOUR of day.minute - The value used to set the MINUTE in of.public DateTime(Calendar calendar)
calendar - Calendar object for initializing.public DateTime(String expression) throws ParseException
expression - XJDF DateTime String expression.ParseExceptionpublic Calendar getCalendar()
public String marshal(DateTime dateTime)
marshal in class XmlAdapter<String,DateTime>XmlAdapter.marshal(java.lang.Object)public DateTime unmarshal(String dateTime) throws Exception
unmarshal in class XmlAdapter<String,DateTime>ExceptionXmlAdapter.unmarshal(java.lang.Object)public String toString()
toString in class AbstractXJdfType<String,DateTime>Object.toString()Copyright © 2013. All Rights Reserved.