Class ObjectivesList
java.lang.Object
dev.jcputney.elearning.parser.input.cmi5.ObjectivesList
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionConstructs an instance ofObjectivesListwith no predefined objectives.ObjectivesList(List<Objective> objectives) Constructs an instance ofObjectivesListwith a specified list of objectives. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of objectives defined within this instance.inthashCode()voidsetObjectives(List<Objective> objectives) Sets the list of objectives for this instance.
-
Constructor Details
-
ObjectivesList
Constructs an instance ofObjectivesListwith a specified list of objectives.- Parameters:
objectives- the list of objectives to initialize this instance with, where each objective is represented by anObjective
-
ObjectivesList
public ObjectivesList()Constructs an instance ofObjectivesListwith no predefined objectives. This no-argument constructor initializes an empty ObjectivesList instance.
-
-
Method Details
-
getObjectives
Retrieves the list of objectives defined within this instance.- Returns:
- a list of
Objectiveobjects representing the defined objectives
-
setObjectives
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 ofObjectiveobjects to set, where each object defines a goal with its associated metadata
-
equals
-
hashCode
public int hashCode()
-