public class TLcdISO19115Date extends TLcdISO19118Object
event
and when it occurred (for example, a revision date).Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
DATE_PROPERTY
Data property that maps to the
date element. |
static TLcdDataProperty |
DATE_TYPE_PROPERTY
Data property that maps to the
dateType element. |
ID_PROPERTY, UUID_PROPERTY
Constructor and Description |
---|
TLcdISO19115Date() |
TLcdISO19115Date(TLcdDataType aType) |
TLcdISO19115Date(TLcdISO19115DateTypeCode aDateTypeCode,
XMLGregorianCalendar aDate)
Creates a new instance using the given date.
|
Modifier and Type | Method and Description |
---|---|
XMLGregorianCalendar |
getDate()
Returns the role value contained in the value of the
DATE_PROPERTY property. |
TLcdISO19115DateTypeCode |
getDateType()
Returns the role value contained in the value of the
DATE_TYPE_PROPERTY property. |
void |
setDate(XMLGregorianCalendar aValue)
Sets the value of the property that maps to the
date element. |
void |
setDateType(TLcdISO19115DateTypeCode aValue)
Sets the value of the property that maps to the
dateType element. |
getId, getUuid, setId, setUuid
public static final TLcdDataProperty DATE_PROPERTY
date
element.
The possible values for this property are instances of TLcdISO19115Optional
<Object>
.The value object in the optional should be either a XMLGregorianCalendar representing a date time, or an instance of TLcdXMLDataModelBuilder.getDataObjectTypeForPrimitiveType( TLcdGCODataTypes.Date_Type )
containing (optionally) an XMLGregorianCalendar representing a date, month-year or year.public static final TLcdDataProperty DATE_TYPE_PROPERTY
dateType
element.
The possible values for this property are instances of TLcdISO19115Optional<TLcdISO19115DateTypeCode>
.public TLcdISO19115Date()
public TLcdISO19115Date(TLcdDataType aType)
public TLcdISO19115Date(TLcdISO19115DateTypeCode aDateTypeCode, XMLGregorianCalendar aDate)
aDateTypeCode
- identifies the event of the dateaDate
- the date value to use for the DATE_PROPERTY
public XMLGregorianCalendar getDate()
DATE_PROPERTY
property. Returns null
if the value of the DATE_PROPERTY
property is null
.DATE_PROPERTY
property.TLcdISO19115Optional
public void setDate(XMLGregorianCalendar aValue)
date
element. to a new instance of the association class TLcdISO19115Optional
initialized with the given role value. In case the given role value is null
, the DATE_PROPERTY
property is set to null
.aValue
- the role value to set for the DATE_PROPERTY
property.public TLcdISO19115DateTypeCode getDateType()
DATE_TYPE_PROPERTY
property. Returns null
if the value of the DATE_TYPE_PROPERTY
property is null
.DATE_TYPE_PROPERTY
property.TLcdISO19115Optional
public void setDateType(TLcdISO19115DateTypeCode aValue)
dateType
element. to a new instance of the association class TLcdISO19115Optional
initialized with the given role value. In case the given role value is null
, the DATE_TYPE_PROPERTY
property is set to null
.aValue
- the role value to set for the DATE_TYPE_PROPERTY
property.