Class Scorm12Dependency
java.lang.Object
dev.jcputney.elearning.parser.input.scorm12.ims.cp.Scorm12Dependency
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the identifier reference of the required resource.inthashCode()voidsetIdentifierRef(String identifierRef) Sets the identifier reference of the required resource.
-
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
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
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
-
hashCode
public int hashCode()
-