Class Scorm2004File
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.cp.Scorm2004File
- All Implemented Interfaces:
Serializable
Represents a file element within a resource, specifying a particular physical file in the content
package.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHref()Retrieves the URL or path to the file within the content package.Retrieves the metadata associated with this file.inthashCode()booleanisExists()Checks whether the file exists in the content package.voidsetExists(boolean exists) Sets the existence status of the file.voidSets the URL or path to the file within the content package.voidsetMetadata(Scorm2004SubMetadata metadata) Sets the metadata associated with this file.
-
Constructor Details
-
Scorm2004File
public Scorm2004File()Default constructor for the Scorm2004File class. This constructor creates an instance of the Scorm2004File class with no initial parameters.
-
-
Method Details
-
getHref
Retrieves the URL or path to the file within the content package.- Returns:
- the href representing the location of the file in the content package
-
setHref
Sets the URL or path to the file within the content package.- Parameters:
href- the href representing the location of the file in the content package
-
getMetadata
Retrieves the metadata associated with this file. The metadata provides details such as file size, creation date, and other descriptive information relevant to the file.- Returns:
- the metadata of type
Scorm2004SubMetadataassociated with this file
-
setMetadata
Sets the metadata associated with this file. The metadata provides details such as file size, creation date, and other descriptive information relevant to the file.- Parameters:
metadata- the metadata object containing detailed information about the file
-
isExists
public boolean isExists()Checks whether the file exists in the content package.- Returns:
- true if the file exists, false otherwise
-
setExists
public void setExists(boolean exists) Sets the existence status of the file.- Parameters:
exists- a boolean value wheretrueindicates that the file exists, andfalseindicates that it does not exist.
-
equals
-
hashCode
public int hashCode()
-