Class Scorm12Organization
java.lang.Object
dev.jcputney.elearning.parser.input.scorm12.ims.cp.Scorm12Organization
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDefault constructor for theScorm12Organizationclass.Scorm12Organization(String identifier, String structure, String title, Scorm12Metadata metadata, List<Scorm12Item> items) Constructs a newScorm12Organizationinstance with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the identifier associated with the SCORM 1.2 organization.getItems()Retrieves the list of SCORM 1.2 items associated with the organization.Retrieves the metadata associated with the SCORM 1.2 organization.Retrieves the structure of the SCORM 1.2 organization.getTitle()Retrieves the title associated with the SCORM 1.2 organization.inthashCode()voidsetIdentifier(String identifier) Assigns a unique identifier to the SCORM 1.2 organization.voidsetItems(List<Scorm12Item> items) Sets the list of SCORM 1.2 items associated with the organization.voidsetMetadata(Scorm12Metadata metadata) Sets the metadata associated with the SCORM 1.2 organization.voidsetStructure(String structure) Sets the structure associated with the SCORM 1.2 organization.voidSets the title associated with the SCORM 1.2 organization.
-
Constructor Details
-
Scorm12Organization
public Scorm12Organization(String identifier, String structure, String title, Scorm12Metadata metadata, List<Scorm12Item> items) Constructs a newScorm12Organizationinstance 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- AScorm12Metadataobject containing metadata details for the organization.items- A list ofScorm12Itemobjects defining the items associated with the organization.
-
Scorm12Organization
public Scorm12Organization()Default constructor for theScorm12Organizationclass.This constructor initializes a new instance of
Scorm12Organizationwith no arguments. It serves primarily as a no-operation initializer, leaving all fields uninitialized.
-
-
Method Details
-
getIdentifier
Retrieves the identifier associated with the SCORM 1.2 organization.- Returns:
- A string representing the unique identifier of the organization.
-
setIdentifier
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
Retrieves the structure of the SCORM 1.2 organization.- Returns:
- A string representing the structure of the organization.
-
setStructure
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
Retrieves the title associated with the SCORM 1.2 organization.- Returns:
- A string representing the title of the organization.
-
setTitle
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
Retrieves the metadata associated with the SCORM 1.2 organization.- Returns:
- A Scorm12Metadata object representing the metadata of the organization.
-
setMetadata
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
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
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
-
hashCode
public int hashCode()
-