Class Date
java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.Date
- All Implemented Interfaces:
Serializable
Represents a date element in LOM metadata, including the date value and an optional description.
<xs:complexType name="date">
<xs:complexContent>
<xs:extension base="DateTime">
<xs:attributeGroup ref="ag:date"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the date-time value associated with this instance.Retrieves the description of the date.inthashCode()voidsetDateTime(String dateTime) Sets the date-time value for this instance.voidsetDescription(UnboundLangString description) Sets the description of the date element.
-
Constructor Details
-
Date
public Date()Default constructor for theDateclass.Initializes a new instance of the
Dateclass. This constructor performs no operations and primarily exists to allow object creation without any initial state or parameters.
-
-
Method Details
-
getDateTime
Retrieves the date-time value associated with this instance.- Returns:
- the date-time value as a String
-
setDateTime
Sets the date-time value for this instance.- Parameters:
dateTime- the date-time value to be set as a String, representing a specific date and time
-
getDescription
Retrieves the description of the date. The description typically contains language-specific string values and is represented as an UnboundLangString.- Returns:
- the description of the date as an UnboundLangString
-
setDescription
Sets the description of the date element. The description is typically a language-aware string represented as anUnboundLangString.- Parameters:
description- the description to set, which contains one or more language-specific string values
-
equals
-
hashCode
public int hashCode()
-