Class Scorm12Organization

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

public final class Scorm12Organization extends Object implements Serializable
Represents the organization element in SCORM 1.2.

The organization element defines the structure and hierarchy of content items within a content package. It also allows for metadata to describe the organization and an optional structure attribute.

Schema Snippet:


 <xsd:complexType name="organizationType">
    <xsd:sequence>
       <xsd:element ref="title" minOccurs="0"/>
       <xsd:element ref="item" minOccurs="0" maxOccurs="unbounded"/>
       <xsd:element ref="metadata" minOccurs="0"/>
       <xsd:group ref="grp.any"/>
    </xsd:sequence>
    <xsd:attributeGroup ref="attr.identifier.req"/>
    <xsd:attributeGroup ref="attr.structure.req"/>
    <xsd:anyAttribute namespace="##other" processContents="strict"/>
 </xsd:complexType>
 

Example Usage in imsmanifest.xml:


 <organization identifier="org_1" structure="hierarchical">
   <title>Sample Organization</title>
   <metadata>
     <schema>ADL SCORM</schema>
     <schemaversion>1.2</schemaversion>
   </metadata>
   <item identifier="item_1" identifierref="resource_1">
     <title>Sample Item</title>
   </item>
 </organization>
 
See Also:
  • Constructor Details

    • Scorm12Organization

      public Scorm12Organization(String identifier, String structure, String title, Scorm12Metadata metadata, List<Scorm12Item> items)
      Constructs a new Scorm12Organization instance with the specified parameters.
      Parameters:
      identifier - A string representing the unique identifier of the SCORM 1.2 organization.
      structure - A string representing the structural definition of the organization.
      title - A string representing the title of the organization, providing a human-readable label.
      metadata - A Scorm12Metadata object containing metadata details for the organization.
      items - A list of Scorm12Item objects defining the items associated with the organization.
    • Scorm12Organization

      public Scorm12Organization()
      Default constructor for the Scorm12Organization class.

      This constructor initializes a new instance of Scorm12Organization with no arguments. It serves primarily as a no-operation initializer, leaving all fields uninitialized.

  • Method Details

    • getIdentifier

      public String getIdentifier()
      Retrieves the identifier associated with the SCORM 1.2 organization.
      Returns:
      A string representing the unique identifier of the organization.
    • setIdentifier

      public void setIdentifier(String identifier)
      Assigns a unique identifier to the SCORM 1.2 organization.
      Parameters:
      identifier - A string representing the unique identifier for the organization. The identifier should match the required format or expectations of the SCORM 1.2 specification.
    • getStructure

      public String getStructure()
      Retrieves the structure of the SCORM 1.2 organization.
      Returns:
      A string representing the structure of the organization.
    • setStructure

      public void setStructure(String structure)
      Sets the structure associated with the SCORM 1.2 organization.
      Parameters:
      structure - A string representing the structure of the organization. This parameter should adhere to the expected format as defined by the SCORM 1.2 specification.
    • getTitle

      public String getTitle()
      Retrieves the title associated with the SCORM 1.2 organization.
      Returns:
      A string representing the title of the organization.
    • setTitle

      public void setTitle(String title)
      Sets the title associated with the SCORM 1.2 organization.
      Parameters:
      title - A string representing the title of the organization. This value should provide a human-readable description or label for the organization.
    • getMetadata

      public Scorm12Metadata getMetadata()
      Retrieves the metadata associated with the SCORM 1.2 organization.
      Returns:
      A Scorm12Metadata object representing the metadata of the organization.
    • setMetadata

      public void setMetadata(Scorm12Metadata metadata)
      Sets the metadata associated with the SCORM 1.2 organization.
      Parameters:
      metadata - A Scorm12Metadata object representing the metadata of the organization. This metadata provides descriptive information conforming to the SCORM 1.2 specification.
    • getItems

      public List<Scorm12Item> getItems()
      Retrieves the list of SCORM 1.2 items associated with the organization.
      Returns:
      A list of Scorm12Item objects representing the items defined within the organization.
    • setItems

      public void setItems(List<Scorm12Item> items)
      Sets the list of SCORM 1.2 items associated with the organization.
      Parameters:
      items - A list of Scorm12Item objects representing the items to be defined within the organization. Each item should comply with the SCORM 1.2 specification.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object