Class Annotation

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

public final class Annotation extends Object implements Serializable
Represents the annotation information about a learning object in a Learning Object Metadata (LOM) document. Annotations provide additional comments, instructions, or explanations related to the learning object.

Schema snippet:


 <complexType name="annotation">
   <choice minOccurs="0" maxOccurs="unbounded">
     <group ref="entity"/>
     <group ref="date"/>
     <group ref="description"/>
     <group ref="ex:customElements"/>
   </choice>
   <attributeGroup ref="ag:annotation"/>
 </complexType>
 
See Also:
  • Constructor Details

    • Annotation

      public Annotation()
      Default constructor for the Annotation class. Initializes a new instance of the Annotation object without setting any fields.
  • Method Details

    • getEntity

      public String getEntity()
      Retrieves the value of the entity associated with this object.
      Returns:
      the entity as a String
    • setEntity

      public void setEntity(String entity)
      Sets the entity associated with this object.
      Parameters:
      entity - the entity to be set, represented as a String
    • getDate

      public Date getDate()
      Retrieves the date associated with this object.
      Returns:
      the date as a Date object
    • setDate

      public void setDate(Date date)
      Sets the date associated with this object.
      Parameters:
      date - the date to be set, represented as a Date object
    • getDescription

      public SingleLangString getDescription()
      Retrieves the description associated with this annotation.
      Returns:
      the description as a SingleLangString object
    • setDescription

      public void setDescription(SingleLangString description)
      Sets the description associated with this annotation.
      Parameters:
      description - the description to be set, represented as a SingleLangString object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object