java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.Date
All Implemented Interfaces:
Serializable

public final class Date extends Object implements 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 Details

    • Date

      public Date()
      Default constructor for the Date class.

      Initializes a new instance of the Date class. This constructor performs no operations and primarily exists to allow object creation without any initial state or parameters.

  • Method Details

    • getDateTime

      public String getDateTime()
      Retrieves the date-time value associated with this instance.
      Returns:
      the date-time value as a String
    • setDateTime

      public void setDateTime(String dateTime)
      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

      public UnboundLangString 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

      public void setDescription(UnboundLangString description)
      Sets the description of the date element. The description is typically a language-aware string represented as an UnboundLangString.
      Parameters:
      description - the description to set, which contains one or more language-specific string values
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object