Class Scorm12Organizations

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

public final class Scorm12Organizations extends Object implements Serializable
Represents the <organizations> element in the SCORM 1.2 manifest file.

The <organizations> element defines a collection of organizations within the content package. Each organization represents a hierarchical structure of learning resources and is identified by a unique identifier.


 <xsd:complexType name="organizationsType">
    <xsd:sequence>
       <xsd:element ref="organization" minOccurs="0" maxOccurs="unbounded"/>
       <xsd:group ref="grp.any"/>
    </xsd:sequence>
    <xsd:attributeGroup ref="attr.default"/>
    <xsd:anyAttribute namespace="##other" processContents="strict"/>
 </xsd:complexType>
 
See Also:
  • Constructor Details

    • Scorm12Organizations

      public Scorm12Organizations(String defaultOrganization, List<Scorm12Organization> organizationList)
      Constructs a new instance of Scorm12Organizations with the specified default organization identifier and list of organizations.
      Parameters:
      defaultOrganization - The identifier of the default organization for the SCORM 1.2 content package.
      organizationList - A list of Scorm12Organization objects representing all organizations associated with this SCORM 1.2 package.
    • Scorm12Organizations

      public Scorm12Organizations()
      Default constructor for the Scorm12Organizations class.

      This constructor initializes an empty instance of the Scorm12Organizations class without setting any default organization or associated organizations. It provides a no-operation base instance suitable for further configuration.

  • Method Details

    • getOrganizationById

      public Scorm12Organization getOrganizationById(String id)
      Retrieves an organization by its unique identifier.
      Parameters:
      id - The unique identifier for the organization.
      Returns:
      The organization with the specified identifier, or null if not found.
    • getDefault

      public Scorm12Organization getDefault()
      Retrieves the default organization for the content package.
      Returns:
      The default organization, or null if not found.
    • getDefaultOrganization

      public String getDefaultOrganization()
      Retrieves the default organization identifier for the SCORM 1.2 content package.
      Returns:
      A string representing the identifier of the default organization, or null if no default organization is defined.
    • setDefaultOrganization

      public void setDefaultOrganization(String defaultOrganization)
      Sets the default organization identifier for the SCORM 1.2 content package.
      Parameters:
      defaultOrganization - A string representing the identifier of the default organization.
    • getOrganizationList

      public List<Scorm12Organization> getOrganizationList()
      Retrieves the list of SCORM 1.2 organizations.
      Returns:
      A list of Scorm12Organization objects representing all the organizations associated with this SCORM 1.2 package. Returns an empty list if no organizations are defined.
    • setOrganizationList

      public void setOrganizationList(List<Scorm12Organization> organizationList)
      Sets the list of SCORM 1.2 organizations associated with this object.
      Parameters:
      organizationList - A list of Scorm12Organization objects representing the organizations to be associated with this instance.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object