java.lang.Object
dev.jcputney.elearning.parser.input.scorm12.ims.cp.Scorm12Metadata
All Implemented Interfaces:
LoadableMetadata, Serializable

public final class Scorm12Metadata extends Object implements LoadableMetadata
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 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

      public String getSchema()
      Retrieves the schema associated with the SCORM 1.2 metadata.
      Returns:
      A string representing the schema of the SCORM 1.2 metadata.
    • setSchema

      public void setSchema(String schema)
      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

      public String 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

      public void setSchemaVersion(String schemaVersion)
      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

      public LOM getLom()
      Retrieves the LOM (Learning Object Metadata) associated with the SCORM 1.2 metadata.
      Specified by:
      getLom in interface LoadableMetadata
      Returns:
      The LOM object representing the learning object metadata.
    • setLom

      public void setLom(LOM lom)
      Sets the LOM (Learning Object Metadata) for the SCORM 1.2 metadata.
      Specified by:
      setLom in interface LoadableMetadata
      Parameters:
      lom - The LOM object representing the learning object metadata to be associated with the SCORM 1.2 metadata.
    • getLocation

      public String getLocation()
      Retrieves the location associated with the SCORM 1.2 metadata.
      Specified by:
      getLocation in interface LoadableMetadata
      Returns:
      A string representing the location of the SCORM 1.2 metadata.
    • setLocation

      public void setLocation(String location)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object