Class Scorm12Dependency

java.lang.Object
dev.jcputney.elearning.parser.input.scorm12.ims.cp.Scorm12Dependency
All Implemented Interfaces:
Serializable

public final class Scorm12Dependency extends Object implements Serializable
Represents a dependency within SCORM 1.2 resource.

A dependency specifies a resource required by the parent resource. This is commonly used to define external files, such as images, scripts, or other assets, that must be loaded for the parent resource to function correctly.

Schema Snippet:


 <xsd:element name="dependency">
   <xsd:complexType>
     <xsd:attribute name="identifierref" type="xsd:IDREF" use="required"/>
   </xsd:complexType>
 </xsd:element>
 

Example Usage in imsmanifest.xml:


 <resource identifier="resource_1" type="webcontent" adlcp:scormType="sco">
   <file href="index.html"/>
   <dependency identifierref="resource_2"/>
 </resource>
 
See Also:
  • Constructor Details

    • Scorm12Dependency

      public Scorm12Dependency()
      Default constructor for Scorm12Dependency.

      This constructor initializes a new instance of the Scorm12Dependency class. It does not perform any specific actions or initialization logic and is provided as a no-operation (no-op) method to accommodate scenarios requiring an empty object instantiation.

  • Method Details

    • getIdentifierRef

      public String getIdentifierRef()
      Retrieves the identifier reference of the required resource. This value serves as an IDREF pointing to another resource within the same manifest file.
      Returns:
      the identifier reference of the required resource
    • setIdentifierRef

      public void setIdentifierRef(String identifierRef)
      Sets the identifier reference of the required resource. This value serves as an IDREF pointing to another resource within the same manifest file.
      Parameters:
      identifierRef - the identifier reference of the required resource
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object