Class ReferencesObjectives
java.lang.Object
dev.jcputney.elearning.parser.input.cmi5.types.ReferencesObjectives
- All Implemented Interfaces:
Serializable
Represents a list of objectives referenced by an AU or block in a CMI5 course structure.
Defined in the schema as:
<xs:complexType name="referencesObjectivesType">
<xs:sequence>
<xs:element name="objective" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="idref" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:group ref="anyElement"/>
</xs:sequence>
<xs:attributeGroup ref="anyAttribute"/>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofReferencesObjectiveswith no initial objectives.ReferencesObjectives(List<ObjectiveReference> objectives) Constructs an instance ofReferencesObjectiveswith the specified list of objectives. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of objectives referenced by this instance.inthashCode()voidsetObjectives(List<ObjectiveReference> objectives) Sets the list of objectives for this instance.
-
Constructor Details
-
ReferencesObjectives
Constructs an instance ofReferencesObjectiveswith the specified list of objectives.- Parameters:
objectives- a list ofObjectiveReferenceobjects that represent the objectives referenced by this instance. Each objective holds an ID reference as defined in the schema.
-
ReferencesObjectives
public ReferencesObjectives()Constructs an instance ofReferencesObjectiveswith no initial objectives.This no-argument constructor initializes an empty instance of
ReferencesObjectives. It is primarily used for deserialization or scenarios where the objectives will be set later.
-
-
Method Details
-
getObjectives
Retrieves the list of objectives referenced by this instance.- Returns:
- a list of
ObjectiveReferenceobjects representing the objectives.
-
setObjectives
Sets the list of objectives for this instance.- Parameters:
objectives- a list ofObjectiveReferenceobjects representing the objectives to be associated with this instance.
-
equals
-
hashCode
public int hashCode()
-