Class AU
java.lang.Object
dev.jcputney.elearning.parser.input.cmi5.AU
- All Implemented Interfaces:
Serializable
Represents an Assignable Unit (AU) in a CMI5 course structure. An AU is a distinct learning
activity or resource that can be assigned to learners.
Defined in the schema as:
<xs:complexType name="auType">
<xs:sequence>
<xs:element name="title" type="textType"/>
<xs:element name="description" type="textType"/>
<xs:element name="objectives" type="referencesObjectivesType" minOccurs="0"/>
<xs:element name="url">
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="launchParameters" minOccurs="0"/>
<xs:element name="entitlementKey" minOccurs="0"/>
<xs:group ref="anyElement"/>
</xs:sequence>
<xs:attributeGroup ref="anyAttribute"/>
<xs:attribute name="id" type="xs:anyURI" use="required"/>
<xs:attribute name="moveOn" default="NotApplicable">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="NotApplicable"/>
<xs:enumeration value="Passed"/>
<xs:enumeration value="Completed"/>
<xs:enumeration value="CompletedAndPassed"/>
<xs:enumeration value="CompletedOrPassed"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="masteryScore" use="optional">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="launchMethod" default="AnyWindow">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="AnyWindow"/>
<xs:enumeration value="OwnWindow"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="activityType" use="optional" type="xs:string"/>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAU()Default constructor for the AU class.AU(TextType title, TextType description, ReferencesObjectives objectives, String url, String launchParameters, String entitlementKey, String id, MoveOn moveOn, PercentType masteryScore, LaunchMethod launchMethod, String activityType) Constructs a new instance of AU with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the activity type associated with the current instance.Retrieves the description of the current instance.Retrieves the entitlement key associated with the current instance.getId()Retrieves the unique identifier associated with the current instance.Retrieves the launch method associated with the current instance.Retrieves the launch parameters associated with the current instance.Retrieves the mastery score associated with the current instance.Retrieves theMoveOnvalue associated with the current instance.Retrieves the objectives of the current instance.getTitle()Retrieves the title of the current instance.getUrl()Retrieves the URL associated with the current instance.inthashCode()voidsetActivityType(String activityType) Updates the activity type for the current instance.voidsetDescription(TextType description) Updates the description for the current instance.voidsetEntitlementKey(String entitlementKey) Sets the entitlement key for the current instance.voidUpdates the unique identifier for the current instance.voidsetLaunchMethod(LaunchMethod launchMethod) Sets theLaunchMethodfor the current instance.voidsetLaunchParameters(String launchParameters) Updates the launch parameters for the current instance.voidsetMasteryScore(PercentType masteryScore) Updates the mastery score for the current instance.voidUpdates theMoveOnvalue for the current instance.voidsetObjectives(ReferencesObjectives objectives) Updates the objectives for the current instance.voidUpdates the title for the current instance.voidUpdates the URL for the current instance.
-
Constructor Details
-
AU
public AU(TextType title, TextType description, ReferencesObjectives objectives, String url, String launchParameters, String entitlementKey, String id, MoveOn moveOn, PercentType masteryScore, LaunchMethod launchMethod, String activityType) Constructs a new instance of AU with the specified parameters.- Parameters:
title- the title of the AU, represented as aTextType, which supports multi-language localized textdescription- the description of the AU, represented as aTextType, which supports multi-language localized textobjectives- the objectives associated with the AU, represented as aReferencesObjectivesobjecturl- the URL associated with the AU, represented as aStringlaunchParameters- the launch parameters for the AU, represented as aStringentitlementKey- the entitlement key for the AU, represented as aStringid- the unique identifier for the AU, represented as aStringmoveOn- theMoveOnenum value representing the conditions that must be met to move on to the next activitymasteryScore- the mastery score for the AU, represented as aPercentType, which is a percentage value constrained between 0 and 1, inclusivelaunchMethod- theLaunchMethodenum value specifying the method used to launch the activityactivityType- the activity type associated with the AU, represented as aString
-
AU
public AU()Default constructor for the AU class. Initializes a new instance of the AU class without setting any field values. This constructor performs no operations and is intended for scenarios where an instance of AU is required but specific initialization is not necessary.
-
-
Method Details
-
getTitle
Retrieves the title of the current instance.- Returns:
- the title as a
TextTyperepresenting localized text.
-
setTitle
Updates the title for the current instance.- Parameters:
title- the new title, represented as aTextType, which supports multi-language localized text
-
getDescription
Retrieves the description of the current instance.- Returns:
- the description as a
TextType, which represents localized text.
-
setDescription
Updates the description for the current instance.- Parameters:
description- the new description, represented as aTextType, which supports multi-language localized text
-
getObjectives
Retrieves the objectives of the current instance.- Returns:
- a
ReferencesObjectivesobject representing the objectives associated with the current instance.
-
setObjectives
Updates the objectives for the current instance.- Parameters:
objectives- the newReferencesObjectivesobject representing the objectives associated with the current instance.
-
getUrl
Retrieves the URL associated with the current instance.- Returns:
- the URL as a
String.
-
setUrl
Updates the URL for the current instance.- Parameters:
url- the new URL, represented as a String.
-
getLaunchParameters
Retrieves the launch parameters associated with the current instance.- Returns:
- a
Stringrepresenting the launch parameters.
-
setLaunchParameters
Updates the launch parameters for the current instance.- Parameters:
launchParameters- the new launch parameters, represented as aString.
-
getEntitlementKey
Retrieves the entitlement key associated with the current instance.- Returns:
- a
Stringrepresenting the entitlement key.
-
setEntitlementKey
Sets the entitlement key for the current instance.- Parameters:
entitlementKey- the new entitlement key, represented as aString.
-
getId
Retrieves the unique identifier associated with the current instance.- Returns:
- a
Stringrepresenting the unique identifier.
-
setId
Updates the unique identifier for the current instance.- Parameters:
id- the new unique identifier, represented as aString.
-
getMoveOn
Retrieves theMoveOnvalue associated with the current instance.- Returns:
- the
MoveOnenum value representing the conditions for moving on to the next activity.
-
setMoveOn
Updates theMoveOnvalue for the current instance.- Parameters:
moveOn- the newMoveOnenum value representing the conditions that must be met to move on to the next activity.
-
getMasteryScore
Retrieves the mastery score associated with the current instance.- Returns:
- a
PercentTyperepresenting the mastery score, which is defined as a percentage value constrained between 0 and 1, inclusive.
-
setMasteryScore
Updates the mastery score for the current instance.- Parameters:
masteryScore- the new mastery score, represented as aPercentType, which is a percentage value constrained between 0 and 1, inclusive.
-
getLaunchMethod
Retrieves the launch method associated with the current instance.- Returns:
- the
LaunchMethod, an enum representing the method used to launch the activity.
-
setLaunchMethod
Sets theLaunchMethodfor the current instance.- Parameters:
launchMethod- theLaunchMethodenum value specifying the method used to launch the activity. It determines whether the activity can launch in any window or must be launched in its own window.
-
getActivityType
Retrieves the activity type associated with the current instance.- Returns:
- a
Stringrepresenting the activity type.
-
setActivityType
Updates the activity type for the current instance.- Parameters:
activityType- the new activity type, represented as aString.
-
equals
-
hashCode
public int hashCode()
-