Class Scorm12Organizations
java.lang.Object
dev.jcputney.elearning.parser.input.scorm12.ims.cp.Scorm12Organizations
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDefault constructor for the Scorm12Organizations class.Scorm12Organizations(String defaultOrganization, List<Scorm12Organization> organizationList) Constructs a new instance of Scorm12Organizations with the specified default organization identifier and list of organizations. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the default organization for the content package.Retrieves the default organization identifier for the SCORM 1.2 content package.Retrieves an organization by its unique identifier.Retrieves the list of SCORM 1.2 organizations.inthashCode()voidsetDefaultOrganization(String defaultOrganization) Sets the default organization identifier for the SCORM 1.2 content package.voidsetOrganizationList(List<Scorm12Organization> organizationList) Sets the list of SCORM 1.2 organizations associated with this object.
-
Constructor Details
-
Scorm12Organizations
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 ofScorm12Organizationobjects 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
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.
-
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
Sets the default organization identifier for the SCORM 1.2 content package.- Parameters:
defaultOrganization- A string representing the identifier of the default organization.
-
getOrganizationList
Retrieves the list of SCORM 1.2 organizations.- Returns:
- A list of
Scorm12Organizationobjects representing all the organizations associated with this SCORM 1.2 package. Returns an empty list if no organizations are defined.
-
setOrganizationList
Sets the list of SCORM 1.2 organizations associated with this object.- Parameters:
organizationList- A list ofScorm12Organizationobjects representing the organizations to be associated with this instance.
-
equals
-
hashCode
public int hashCode()
-