Class Annotation
java.lang.Object
dev.jcputney.elearning.parser.input.lom.Annotation
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDate()Retrieves the date associated with this object.Retrieves the description associated with this annotation.Retrieves the value of the entity associated with this object.inthashCode()voidSets the date associated with this object.voidsetDescription(SingleLangString description) Sets the description associated with this annotation.voidSets the entity associated with this object.
-
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
Retrieves the value of the entity associated with this object.- Returns:
- the entity as a String
-
setEntity
Sets the entity associated with this object.- Parameters:
entity- the entity to be set, represented as a String
-
getDate
Retrieves the date associated with this object.- Returns:
- the date as a Date object
-
setDate
Sets the date associated with this object.- Parameters:
date- the date to be set, represented as a Date object
-
getDescription
Retrieves the description associated with this annotation.- Returns:
- the description as a SingleLangString object
-
setDescription
Sets the description associated with this annotation.- Parameters:
description- the description to be set, represented as a SingleLangString object
-
equals
-
hashCode
public int hashCode()
-