Class Scorm2004Resource
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.cp.Scorm2004Resource
- All Implemented Interfaces:
Serializable
Represents a single resource within the content package, typically corresponding to a physical
file or collection of files that can be delivered within an LMS.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the Scorm2004Resource class. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBase()Retrieves the base value of the SCORM 2004 resource.Retrieves the list of dependencies associated with the SCORM 2004 resource.getFiles()Retrieves the list of SCORM 2004 files associated with this resource.getHref()Retrieves the href value of the SCORM 2004 resource.Retrieves the identifier of the SCORM 2004 resource.Retrieves the metadata associated with the SCORM 2004 resource.Retrieves the SCORM type of the resource.getType()Retrieves the type of the SCORM 2004 resource.inthashCode()voidSets the base value of the SCORM 2004 resource.voidsetDependencies(List<Scorm2004Dependency> dependencies) Sets the list of dependencies associated with the SCORM 2004 resource.voidsetFiles(List<Scorm2004File> files) Sets the list of SCORM 2004 files associated with this resource.voidSets the href value of the SCORM 2004 resource.voidsetIdentifier(String identifier) Sets the identifier of the SCORM 2004 resource.voidsetMetadata(Scorm2004SubMetadata metadata) Sets the metadata associated with the SCORM 2004 resource.voidsetScormType(ScormType scormType) Sets the SCORM type of the resource.voidSets the type of the SCORM 2004 resource.
-
Constructor Details
-
Scorm2004Resource
public Scorm2004Resource()Constructs a new instance of the Scorm2004Resource class. This no-argument constructor initializes the object without setting any field values.
-
-
Method Details
-
getIdentifier
Retrieves the identifier of the SCORM 2004 resource.- Returns:
- the identifier of the resource as a
String
-
setIdentifier
Sets the identifier of the SCORM 2004 resource.- Parameters:
identifier- the identifier for the resource as a String
-
getType
Retrieves the type of the SCORM 2004 resource.- Returns:
- the type of the resource as a
String
-
setType
Sets the type of the SCORM 2004 resource.- Parameters:
type- the type of the resource as a String
-
getHref
Retrieves the href value of the SCORM 2004 resource.- Returns:
- the href representing the location of the resource as a String
-
setHref
Sets the href value of the SCORM 2004 resource. The href represents the location of the resource.- Parameters:
href- the href representing the location of the resource as a String
-
getBase
Retrieves the base value of the SCORM 2004 resource.- Returns:
- the base value as a String
-
setBase
Sets the base value of the SCORM 2004 resource.- Parameters:
base- the base value as a String
-
getScormType
Retrieves the SCORM type of the resource.- Returns:
- the SCORM type of the resource as an instance of
ScormType
-
setScormType
Sets the SCORM type of the resource. The SCORM type can represent various types of resources defined in the SCORM ADLCP schema, such as SCOs (Shareable Content Objects) or assets.- Parameters:
scormType- an instance ofScormTyperepresenting the SCORM type of the resource (e.g., SCO, asset, or unknown)
-
getMetadata
Retrieves the metadata associated with the SCORM 2004 resource.- Returns:
- an instance of
Scorm2004SubMetadatarepresenting the metadata, which may include inline LOM metadata or an external reference.
-
setMetadata
Sets the metadata associated with the SCORM 2004 resource.- Parameters:
metadata- an instance ofScorm2004SubMetadatarepresenting the metadata, which may include inline LOM metadata or an external reference
-
getFiles
Retrieves the list of SCORM 2004 files associated with this resource. Each file represents a physical file defined in the content package.- Returns:
- a list of
Scorm2004Fileobjects representing the files associated with this resource
-
setFiles
Sets the list of SCORM 2004 files associated with this resource. Each file represents a physical file defined in the content package.- Parameters:
files- a list ofScorm2004Fileobjects representing the files associated with this resource
-
getDependencies
Retrieves the list of dependencies associated with the SCORM 2004 resource. Each dependency represents a relationship to another resource that this resource relies on within the content package.- Returns:
- a list of
Scorm2004Dependencyobjects representing the dependencies associated with this resource.
-
setDependencies
Sets the list of dependencies associated with the SCORM 2004 resource. Each dependency represents a relationship to another resource within the content package that this resource relies upon.- Parameters:
dependencies- a list ofScorm2004Dependencyobjects representing the dependencies associated with this resource
-
equals
-
hashCode
public int hashCode()
-