Class ReferencesObjectives

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

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

    • ReferencesObjectives

      public ReferencesObjectives(List<ObjectiveReference> objectives)
      Constructs an instance of ReferencesObjectives with the specified list of objectives.
      Parameters:
      objectives - a list of ObjectiveReference objects 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 of ReferencesObjectives with 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

      public List<ObjectiveReference> getObjectives()
      Retrieves the list of objectives referenced by this instance.
      Returns:
      a list of ObjectiveReference objects representing the objectives.
    • setObjectives

      public void setObjectives(List<ObjectiveReference> objectives)
      Sets the list of objectives for this instance.
      Parameters:
      objectives - a list of ObjectiveReference objects representing the objectives to be associated with this instance.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object