Package com.luciad.format.xml.datatype
Class TLcdXMLDateTime
java.lang.Object
com.luciad.format.xml.datatype.TLcdXMLDateTime
Deprecated.
Class for representing the following XML temporal types :
xsd:date, xsd:time, xsd:dateTime, xsd:gYearMonth, xsd:gMonthDay, xsd:gYear, xsd:gMonth, xsd:gDay
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated.Enumeration class for defining the type of datetime. -
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:date.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:dateTime.static final int
Deprecated.Special value that indicates that an int field has no value set.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:gDay.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:gMonth.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:gMonthDay.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:gYear.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:gYearMonth.static final TLcdXMLDateTime.Type
Deprecated.Type for representing an xsd:time. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdXMLDateTime
createDate
(int aYear, int aMonth, int aDay, int aTimeZone) Deprecated.Creates an instance with the type date.static TLcdXMLDateTime
createDateTime
(int aYear, int aMonth, int aDay, int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone) Deprecated.Creates an instance with the type dateTime.static TLcdXMLDateTime
createDateTime
(long aTime) Deprecated.Creates an instance with the type dateTime and all fields set according to the given time.static TLcdXMLDateTime
createGDay
(int aDay, int aTimeZone) Deprecated.Creates an instance of type gDay.static TLcdXMLDateTime
createGMonth
(int aMonth, int aTimeZone) Deprecated.Creates an instance of type gMonth.static TLcdXMLDateTime
createGMonthDay
(int aMonth, int aDay, int aTimeZone) Deprecated.Creates an instance of type gMonthDay.static TLcdXMLDateTime
createGYear
(int aYear, int aTimeZone) Deprecated.Creates an instance of type gYear.static TLcdXMLDateTime
createGYearMonth
(int aYear, int aMonth, int aTimeZone) Deprecated.Creates an instance with of type gYearMonth.static TLcdXMLDateTime
createTime
(int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone) Deprecated.Creates an instance with the type time.boolean
Deprecated.int
getDay()
Deprecated.Gets the day orFIELD_UNDEFINED
when this optional field is not defined.Deprecated.Gets the fractional seconds or null when this optional field is not defined.int
getHour()
Deprecated.Gets the hours orFIELD_UNDEFINED
when this optional field is not defined.int
Deprecated.Gets the minute orFIELD_UNDEFINED
when this optional field is not defined.int
getMonth()
Deprecated.Gets the month orFIELD_UNDEFINED
when this optional field is not defined.int
Deprecated.Gets the seconds orFIELD_UNDEFINED
when this optional field is not defined.int
Deprecated.Gets the timezone offset in minutes orFIELD_UNDEFINED
if this optional field is not defined.getType()
Deprecated.Gets the type of date time.int
getYear()
Deprecated.Gets the year orFIELD_UNDEFINED
when this optional field is not defined.int
hashCode()
Deprecated.void
setDay
(int aDay) Deprecated.Sets the day.void
setFractionalSecond
(BigDecimal aFractionalSecond) Deprecated.Sets the fractional seconds.void
setHour
(int aHour) Deprecated.Sets the hour.void
setMinute
(int aMinute) Deprecated.Sets the minute.void
setMonth
(int aMonth) Deprecated.Sets the month.void
setSecond
(int aSecond) Deprecated.Sets the seconds.void
setTimeZone
(int aTimeZone) Deprecated.Sets the timezone offset in minutes.void
setYear
(int aYear) Deprecated.Sets the year.toDate()
Deprecated.Converts a instance to a date.toString()
Deprecated.
-
Field Details
-
DATE
Deprecated.Type for representing an xsd:date. -
TIME
Deprecated.Type for representing an xsd:time. -
DATETIME
Deprecated.Type for representing an xsd:dateTime. -
GYEARMONTH
Deprecated.Type for representing an xsd:gYearMonth. -
GMONTHDAY
Deprecated.Type for representing an xsd:gMonthDay. -
GYEAR
Deprecated.Type for representing an xsd:gYear. -
GMONTH
Deprecated.Type for representing an xsd:gMonth. -
GDAY
Deprecated.Type for representing an xsd:gDay. -
FIELD_UNDEFINED
public static final int FIELD_UNDEFINEDDeprecated.Special value that indicates that an int field has no value set.- See Also:
-
-
Method Details
-
createDateTime
Deprecated.Creates an instance with the type dateTime and all fields set according to the given time.- Parameters:
aTime
- the given date- Returns:
- an instance with the type dateTime and all fields set according to the given time.
-
createDate
Deprecated.Creates an instance with the type date.- Parameters:
aYear
- the year.aMonth
- the month.aDay
- the day.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createDateTime
public static TLcdXMLDateTime createDateTime(int aYear, int aMonth, int aDay, int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone) Deprecated.Creates an instance with the type dateTime.- Parameters:
aYear
- the year.aMonth
- the month.aDay
- the day.aHour
- the hour.aMinute
- the minute.aSecond
- the second.aFractionalSecond
- the fractional second.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createTime
public static TLcdXMLDateTime createTime(int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone) Deprecated.Creates an instance with the type time.- Parameters:
aHour
- the hour.aMinute
- the minute.aSecond
- the second.aFractionalSecond
- the fractional second.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createGDay
Deprecated.Creates an instance of type gDay.- Parameters:
aDay
- the day.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createGMonth
Deprecated.Creates an instance of type gMonth.- Parameters:
aMonth
- the month.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createGYear
Deprecated.Creates an instance of type gYear.- Parameters:
aYear
- the year.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createGYearMonth
Deprecated.Creates an instance with of type gYearMonth.- Parameters:
aYear
- the year.aMonth
- the month.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
createGMonthDay
Deprecated.Creates an instance of type gMonthDay.- Parameters:
aMonth
- the month.aDay
- the day.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.- Returns:
- the corresponding instance.
-
getYear
public int getYear()Deprecated.Gets the year orFIELD_UNDEFINED
when this optional field is not defined.- Returns:
- the year or
FIELD_UNDEFINED
when this optional field is not defined.
-
setYear
public void setYear(int aYear) Deprecated.Sets the year.- Parameters:
aYear
- the year to be set.
-
getMonth
public int getMonth()Deprecated.Gets the month orFIELD_UNDEFINED
when this optional field is not defined.- Returns:
- the month or
FIELD_UNDEFINED
when this optional field is not defined.
-
setMonth
public void setMonth(int aMonth) Deprecated.Sets the month.- Parameters:
aMonth
- the month to be set.
-
getDay
public int getDay()Deprecated.Gets the day orFIELD_UNDEFINED
when this optional field is not defined.- Returns:
- the day or
FIELD_UNDEFINED
when this optional field is not defined.
-
setDay
public void setDay(int aDay) Deprecated.Sets the day.- Parameters:
aDay
- the day to be set.
-
getHour
public int getHour()Deprecated.Gets the hours orFIELD_UNDEFINED
when this optional field is not defined.- Returns:
- the hours or
FIELD_UNDEFINED
when this optional field is not defined.
-
setHour
public void setHour(int aHour) Deprecated.Sets the hour.- Parameters:
aHour
- the hour to be set.
-
getMinute
public int getMinute()Deprecated.Gets the minute orFIELD_UNDEFINED
when this optional field is not defined.- Returns:
- the minute or
FIELD_UNDEFINED
when this optional field is not defined.
-
setMinute
public void setMinute(int aMinute) Deprecated.Sets the minute.- Parameters:
aMinute
- the minute to be set.
-
getSecond
public int getSecond()Deprecated.Gets the seconds orFIELD_UNDEFINED
when this optional field is not defined.- Returns:
- the seconds or
FIELD_UNDEFINED
when this optional field is not defined.
-
setSecond
public void setSecond(int aSecond) Deprecated.Sets the seconds.- Parameters:
aSecond
- the seconds to be set.
-
getFractionalSecond
Deprecated.Gets the fractional seconds or null when this optional field is not defined.- Returns:
- the fractional seconds or null when this optional field is not defined.
-
setFractionalSecond
Deprecated.Sets the fractional seconds.- Parameters:
aFractionalSecond
- the fractional seconds to be set.
-
getTimeZone
public int getTimeZone()Deprecated.Gets the timezone offset in minutes orFIELD_UNDEFINED
if this optional field is not defined.- Returns:
- the timezone offset in minutes or
FIELD_UNDEFINED
if this optional field is not defined.
-
setTimeZone
public void setTimeZone(int aTimeZone) Deprecated.Sets the timezone offset in minutes.- Parameters:
aTimeZone
- the timezone offset to be set.
-
getType
Deprecated.Gets the type of date time. Must be one of the constant fields of this class.- Returns:
- the type of date time.
-
toDate
Deprecated.Converts a instance to a date. Default values are provided for undefined field.- Returns:
- the corresponding date.
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
XMLGregorianCalendar
.