Class XapiMetadata
java.lang.Object
dev.jcputney.elearning.parser.output.ModuleMetadata<TincanManifest>
dev.jcputney.elearning.parser.output.metadata.xapi.XapiMetadata
- All Implemented Interfaces:
PackageManifest,Serializable
Metadata for xAPI/TinCan packaged modules.
TinCan packages contain a single activity and always have xAPI enabled. They do not support multiple launchable units.
- See Also:
-
Field Summary
Fields inherited from class dev.jcputney.elearning.parser.output.ModuleMetadata
manifest, moduleEditionType, moduleType, sizeOnDisk, xapiEnabled -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-argument constructor for XapiMetadata.XapiMetadata(TincanManifest manifest) Constructor for XapiMetadata. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the filename of the manifest file for this module.booleanTinCan packages always have a single activity, so this always returns false.Methods inherited from class dev.jcputney.elearning.parser.output.ModuleMetadata
equals, getDescription, getDuration, getIdentifier, getLaunchUrl, getManifest, getModuleEditionType, getModuleType, getSizeOnDisk, getTitle, getVersion, hashCode, isXapiEnabled, setManifestFile, setSizeOnDiskMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jcputney.elearning.parser.input.PackageManifest
isExternalLaunch
-
Constructor Details
-
XapiMetadata
protected XapiMetadata()Protected no-argument constructor for XapiMetadata.This constructor is primarily used for internal and subclassing purposes. It initializes an instance of XapiMetadata without setting a manifest or other properties.
Instances created using this constructor are expected to be configured manually or used in specific scenarios where the default state is sufficient.
-
XapiMetadata
Constructor for XapiMetadata.- Parameters:
manifest- the TinCan manifest
-
-
Method Details
-
hasMultipleLaunchableUnits
public boolean hasMultipleLaunchableUnits()TinCan packages always have a single activity, so this always returns false.- Specified by:
hasMultipleLaunchableUnitsin classModuleMetadata<TincanManifest>- Returns:
- false
-
getManifestFile
Description copied from class:ModuleMetadataRetrieves the filename of the manifest file for this module.For most module types, this is a constant defined by the specification (e.g., "imsmanifest.xml" for SCORM, "cmi5.xml" for cmi5). For AICC modules, the filename is discovered during parsing as the .crs file can have any name.
- Specified by:
getManifestFilein classModuleMetadata<TincanManifest>- Returns:
- the manifest filename (e.g., "imsmanifest.xml", "cmi5.xml", "course.crs")
-