Class Scorm12Metadata
java.lang.Object
dev.jcputney.elearning.parser.input.scorm12.ims.cp.Scorm12Metadata
- All Implemented Interfaces:
LoadableMetadata,Serializable
Represents the metadata element in SCORM 1.2.
The Metadata element provides descriptive information about an item, resource,
or manifest. It can include inline metadata or reference an external metadata file.
Schema Snippet:
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="schema" type="xsd:string" minOccurs="0"/>
<xsd:element name="schemaversion" type="xsd:string" minOccurs="0"/>
<xsd:element ref="lom:lom" minOccurs="0"/>
<xsd:element ref="adlcp:location" minOccurs="0"/>
</xsd:sequence>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:complexType>
</xsd:element>
Example Usage in imsmanifest.xml:
<metadata>
<schema>ADL SCORM</schema>
<schemaversion>1.2</schemaversion>
<lom:lom xmlns:lom="http://ltsc.ieee.org/xsd/LOM">
<general>
<title>
<string language="en">Introduction to Golf</string>
</title>
</general>
</lom:lom>
</metadata>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the location associated with the SCORM 1.2 metadata.getLom()Retrieves the LOM (Learning Object Metadata) associated with the SCORM 1.2 metadata.Retrieves the schema associated with the SCORM 1.2 metadata.Retrieves the schema version associated with the SCORM 1.2 metadata.inthashCode()voidsetLocation(String location) Sets the location associated with the SCORM 1.2 metadata.voidSets the LOM (Learning Object Metadata) for the SCORM 1.2 metadata.voidSets the schema for the SCORM 1.2 metadata.voidsetSchemaVersion(String schemaVersion) Sets the schema version for the SCORM 1.2 metadata.
-
Constructor Details
-
Scorm12Metadata
public Scorm12Metadata()Default constructor for the Scorm12Metadata class.This constructor initializes a new instance of the Scorm12Metadata class without setting any initial values for its fields. All properties of the instance will need to be explicitly set after construction.
-
-
Method Details
-
getSchema
Retrieves the schema associated with the SCORM 1.2 metadata.- Returns:
- A string representing the schema of the SCORM 1.2 metadata.
-
setSchema
Sets the schema for the SCORM 1.2 metadata.- Parameters:
schema- A string representing the schema to be associated with the SCORM 1.2 metadata.
-
getSchemaVersion
Retrieves the schema version associated with the SCORM 1.2 metadata.- Returns:
- A string representing the schema version of the SCORM 1.2 metadata.
-
setSchemaVersion
Sets the schema version for the SCORM 1.2 metadata.- Parameters:
schemaVersion- A string representing the schema version to be associated with the SCORM 1.2 metadata.
-
getLom
Retrieves the LOM (Learning Object Metadata) associated with the SCORM 1.2 metadata.- Specified by:
getLomin interfaceLoadableMetadata- Returns:
- The LOM object representing the learning object metadata.
-
setLom
Sets the LOM (Learning Object Metadata) for the SCORM 1.2 metadata.- Specified by:
setLomin interfaceLoadableMetadata- Parameters:
lom- The LOM object representing the learning object metadata to be associated with the SCORM 1.2 metadata.
-
getLocation
Retrieves the location associated with the SCORM 1.2 metadata.- Specified by:
getLocationin interfaceLoadableMetadata- Returns:
- A string representing the location of the SCORM 1.2 metadata.
-
setLocation
Sets the location associated with the SCORM 1.2 metadata.- Parameters:
location- A string representing the location to be associated with the SCORM 1.2 metadata.
-
equals
-
hashCode
public int hashCode()
-