Class Scorm2004Organizations

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

public final class Scorm2004Organizations extends Object implements Serializable
Represents the hierarchical structure of organizations in the content package. Organizations define the arrangement of items within the package.
See Also:
  • Constructor Details

    • Scorm2004Organizations

      public Scorm2004Organizations()
      Default constructor for the Scorm2004Organizations class. This constructor initializes an instance of the Scorm2004Organizations class without any initial parameters or configurations.
  • Method Details

    • getOrganizationById

      public Scorm2004Organization 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 Scorm2004Organization getDefault()
      Retrieves the default organization for the content package.
      Returns:
      The default organization, or null if not found.
    • getItemById

      public Scorm2004Item getItemById(String itemId)
      Retrieves an item by its unique identifier.
      Parameters:
      itemId - The unique identifier for the item.
      Returns:
      The item with the specified identifier, or null if not found.
    • getDefaultOrganization

      public String getDefaultOrganization()
      Retrieves the default organization identifier for the content package.
      Returns:
      a String representing the default organization's unique identifier, or null if no default organization is configured
    • setDefaultOrganization

      public void setDefaultOrganization(String defaultOrganization)
      Sets the default organization identifier for the content package.
      Parameters:
      defaultOrganization - the identifier of the default organization to be set
    • getOrganizationList

      public List<Scorm2004Organization> getOrganizationList()
      Retrieves the list of SCORM 2004 organizations associated with this content package.
      Returns:
      a List of Scorm2004Organization objects representing the organizations defined in the content package.
    • setOrganizationList

      public void setOrganizationList(List<Scorm2004Organization> organizationList)
      Sets the list of SCORM 2004 organizations associated with this content package.
      Parameters:
      organizationList - the list of Scorm2004Organization objects to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object