Class Scorm2004SubMetadata

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

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

    Constructors
    Constructor
    Description
    Default constructor for the Scorm2004SubMetadata class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Retrieves the location of the external metadata file referenced by the adlcp:location element.
    Retrieves the inline metadata represented as a LOM (Learning Object Metadata) element.
    int
     
    void
    setLocation(String location)
    Sets the location of the external metadata file.
    void
    setLom(LOM lom)
    Sets the inline metadata represented as a LOM (Learning Object Metadata) element.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public String getLocation()
      Retrieves the location of the external metadata file referenced by the adlcp:location element.
      Specified by:
      getLocation in interface LoadableMetadata
      Returns:
      the location of the external metadata file as a string
    • setLocation

      public void setLocation(String location)
      Sets the location of the external metadata file. The location is represented by the adlcp:location element and typically specifies the path or URL to the metadata file.
      Parameters:
      location - the location of the external metadata file as a string
    • getLom

      public LOM getLom()
      Retrieves the inline metadata represented as a LOM (Learning Object Metadata) element.
      Specified by:
      getLom in interface LoadableMetadata
      Returns:
      the LOM instance containing inline metadata
    • setLom

      public void setLom(LOM lom)
      Sets the inline metadata represented as a LOM (Learning Object Metadata) element.
      Specified by:
      setLom in interface LoadableMetadata
      Parameters:
      lom - the LOM instance containing inline metadata
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object