java.lang.Object
dev.jcputney.elearning.parser.input.cmi5.Course
All Implemented Interfaces:
Serializable

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

    • Course

      public Course(TextType title, TextType description, List<Object> customExtensions, String id)
      Constructs a new instance of the Course class with specified title, description, custom extensions, and identifier.
      Parameters:
      title - a TextType instance representing the title of the course
      description - a TextType instance representing the description of the course
      customExtensions - a list of objects representing the custom extensions of the course
      id - 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

      public TextType getTitle()
      Retrieves the title of the course.
      Returns:
      a TextType instance representing the title of the course
    • setTitle

      public void setTitle(TextType title)
      Sets the title of the course.
      Parameters:
      title - a TextType instance representing the title of the course
    • getDescription

      public TextType getDescription()
      Retrieves the description of the course.
      Returns:
      a TextType instance representing the description of the course
    • setDescription

      public void setDescription(TextType description)
      Sets the description of the course.
      Parameters:
      description - a TextType instance representing the description of the course
    • getCustomExtensions

      public List<Object> getCustomExtensions()
      Retrieves the custom extensions associated with the course.
      Returns:
      a list of objects representing the custom extensions of the course
    • setCustomExtensions

      public void setCustomExtensions(List<Object> customExtensions)
      Sets the custom extensions associated with the course.
      Parameters:
      customExtensions - a list of objects representing the custom extensions of the course
    • getId

      public String getId()
      Retrieves the identifier of the course.
      Returns:
      a string representing the unique identifier of the course
    • setId

      public void setId(String id)
      Sets the identifier of the course.
      Parameters:
      id - a string representing the unique identifier of the course
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object