Class Scorm2004SubMetadata
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.cp.Scorm2004SubMetadata
- All Implemented Interfaces:
LoadableMetadata,Serializable
Represents metadata for a SCORM element, which can either be inline metadata using a LOM element
or an external reference to a metadata file.
LOM Example:
<metadata>
<lom>
<general>
<description>
<string language="en-us">Metadata description here.</string>
</description>
</general>
</lom>
</metadata>
External Metadata Example:
<metadata>
<adlcp:location>metadata.xml</adlcp:location>
</metadata>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the Scorm2004SubMetadata class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the location of the external metadata file referenced by theadlcp:locationelement.getLom()Retrieves the inline metadata represented as a LOM (Learning Object Metadata) element.inthashCode()voidsetLocation(String location) Sets the location of the external metadata file.voidSets the inline metadata represented as a LOM (Learning Object Metadata) element.
-
Constructor Details
-
Scorm2004SubMetadata
public Scorm2004SubMetadata()Default constructor for the Scorm2004SubMetadata class. Creates an instance of Scorm2004SubMetadata with default values. This is a no-op constructor.
-
-
Method Details
-
getLocation
Retrieves the location of the external metadata file referenced by theadlcp:locationelement.- Specified by:
getLocationin interfaceLoadableMetadata- Returns:
- the location of the external metadata file as a string
-
setLocation
Sets the location of the external metadata file. The location is represented by theadlcp:locationelement and typically specifies the path or URL to the metadata file.- Parameters:
location- the location of the external metadata file as a string
-
getLom
Retrieves the inline metadata represented as a LOM (Learning Object Metadata) element.- Specified by:
getLomin interfaceLoadableMetadata- Returns:
- the LOM instance containing inline metadata
-
setLom
Sets the inline metadata represented as a LOM (Learning Object Metadata) element.- Specified by:
setLomin interfaceLoadableMetadata- Parameters:
lom- the LOM instance containing inline metadata
-
equals
-
hashCode
public int hashCode()
-