Class Course
java.lang.Object
dev.jcputney.elearning.parser.input.cmi5.Course
- All Implemented Interfaces:
Serializable
Represents the root course element in a CMI5 course structure, including metadata such as title,
description, and optional custom extensions.
Defined in the schema as:
<xs:element name="course">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="textType"/>
<xs:element name="description" type="textType"/>
<xs:group ref="anyElement"/>
</xs:sequence>
<xs:attributeGroup ref="anyAttribute"/>
<xs:attribute name="id" type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the custom extensions associated with the course.Retrieves the description of the course.getId()Retrieves the identifier of the course.getTitle()Retrieves the title of the course.inthashCode()voidsetCustomExtensions(List<Object> customExtensions) Sets the custom extensions associated with the course.voidsetDescription(TextType description) Sets the description of the course.voidSets the identifier of the course.voidSets the title of the course.
-
Constructor Details
-
Course
Constructs a new instance of the Course class with specified title, description, custom extensions, and identifier.- Parameters:
title- aTextTypeinstance representing the title of the coursedescription- aTextTypeinstance representing the description of the coursecustomExtensions- a list of objects representing the custom extensions of the courseid- a string representing the unique identifier of the course
-
Course
public Course()Default constructor for the Course class. Initializes a new instance of the Course class without setting any fields or properties.
-
-
Method Details
-
getTitle
Retrieves the title of the course.- Returns:
- a
TextTypeinstance representing the title of the course
-
setTitle
Sets the title of the course.- Parameters:
title- aTextTypeinstance representing the title of the course
-
getDescription
Retrieves the description of the course.- Returns:
- a
TextTypeinstance representing the description of the course
-
setDescription
Sets the description of the course.- Parameters:
description- aTextTypeinstance representing the description of the course
-
getCustomExtensions
Retrieves the custom extensions associated with the course.- Returns:
- a list of objects representing the custom extensions of the course
-
setCustomExtensions
Sets the custom extensions associated with the course.- Parameters:
customExtensions- a list of objects representing the custom extensions of the course
-
getId
Retrieves the identifier of the course.- Returns:
- a string representing the unique identifier of the course
-
setId
Sets the identifier of the course.- Parameters:
id- a string representing the unique identifier of the course
-
equals
-
hashCode
public int hashCode()
-