Class Scorm2004Organizations
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.cp.Scorm2004Organizations
- All Implemented Interfaces:
Serializable
Represents the hierarchical structure of organizations in the content package. Organizations
define the arrangement of items within the package.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the Scorm2004Organizations class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the default organization for the content package.Retrieves the default organization identifier for the content package.getItemById(String itemId) Retrieves an item by its unique identifier.Retrieves an organization by its unique identifier.Retrieves the list of SCORM 2004 organizations associated with this content package.inthashCode()voidsetDefaultOrganization(String defaultOrganization) Sets the default organization identifier for the content package.voidsetOrganizationList(List<Scorm2004Organization> organizationList) Sets the list of SCORM 2004 organizations associated with this content package.
-
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
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
Retrieves the default organization for the content package.- Returns:
- The default organization, or null if not found.
-
getItemById
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
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
Sets the default organization identifier for the content package.- Parameters:
defaultOrganization- the identifier of the default organization to be set
-
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
Sets the list of SCORM 2004 organizations associated with this content package.- Parameters:
organizationList- the list of Scorm2004Organization objects to be set
-
equals
-
hashCode
public int hashCode()
-