Class ObjectivesList

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

public final class ObjectivesList extends Object implements Serializable
Represents the objectives section of a CMI5 course structure, containing a list of defined objectives.

Defined in the schema as:


 <xs:complexType name="objectivesType">
   <xs:sequence>
     <xs:element name="objective" minOccurs="1" maxOccurs="unbounded">
       <xs:complexType>
         <xs:all>
           <xs:element name="title" type="textType"/>
           <xs:element name="description" type="textType"/>
         </xs:all>
         <xs:attribute name="id" type="xs:anyURI" use="required"/>
       </xs:complexType>
     </xs:element>
     <xs:group ref="anyElement"/>
   </xs:sequence>
   <xs:attributeGroup ref="anyAttribute"/>
 </xs:complexType>
 
See Also:
  • Constructor Details

    • ObjectivesList

      public ObjectivesList(List<Objective> objectives)
      Constructs an instance of ObjectivesList with a specified list of objectives.
      Parameters:
      objectives - the list of objectives to initialize this instance with, where each objective is represented by an Objective
    • ObjectivesList

      public ObjectivesList()
      Constructs an instance of ObjectivesList with no predefined objectives. This no-argument constructor initializes an empty ObjectivesList instance.
  • Method Details

    • getObjectives

      public List<Objective> getObjectives()
      Retrieves the list of objectives defined within this instance.
      Returns:
      a list of Objective objects representing the defined objectives
    • setObjectives

      public void setObjectives(List<Objective> objectives)
      Sets the list of objectives for this instance. Each objective represents a specific goal with a title, description, and unique identifier.
      Parameters:
      objectives - the list of Objective objects to set, where each object defines a goal with its associated metadata
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object