Class PackageProperties
java.lang.Object
dev.jcputney.elearning.parser.input.lom.properties.PackageProperties
- All Implemented Interfaces:
Serializable
Class representing the root element of the ScormEnginePackageProperties XML.
The following schema snippet is the root declaration of the XSD:
<xs:element name="ScormEnginePackageProperties">
<xs:complexType>
<xs:all>
<xs:element name="controls" type="controlsSpec" minOccurs="0" maxOccurs="1" />
<xs:element name="appearance" type="appearanceSpec" minOccurs="0" maxOccurs="1" />
<xs:element name="appearence" type="appearanceSpec" minOccurs="0" maxOccurs="1" />
<xs:element name="behavior" type="behaviorSpec" minOccurs="0" maxOccurs="1" />
<xs:element name="rsop" type="rsopSpec" minOccurs="0" maxOccurs="1" />
<xs:element name="heuristics" type="heuristicSpec" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
</xs:element>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe namespace URI for the ScormEnginePackageProperties XML. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for thePackagePropertiesclass.PackageProperties(ControlsSpec controls, AppearanceSpec appearance, BehaviorSpec behavior, RsopSpec rsop, HeuristicSpec heuristics) Constructs a newPackagePropertiesinstance with the specified configuration details. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the appearance specifications associated with this package.Retrieves the behavior specifications associated with this package.Retrieves the control specifications associated with this package.Retrieves the heuristic specifications associated with this package.getRsop()Retrieves the RSOP (Resource Synchronization Operational Policy) specification associated with this package.inthashCode()voidsetAppearance(AppearanceSpec appearance) Updates the appearance configuration for the current package.voidsetBehavior(BehaviorSpec behavior) Updates the behavior configuration for the current package.voidsetControls(ControlsSpec controls) Updates the control specifications for the current package configuration.voidsetHeuristics(HeuristicSpec heuristics) Updates the heuristic configuration for the current package.voidUpdates the RSOP (Resource Synchronization Operational Policy) configuration for the current package.
-
Field Details
-
NAMESPACE_URI
The namespace URI for the ScormEnginePackageProperties XML.- See Also:
-
-
Constructor Details
-
PackageProperties
public PackageProperties(ControlsSpec controls, AppearanceSpec appearance, BehaviorSpec behavior, RsopSpec rsop, HeuristicSpec heuristics) Constructs a newPackagePropertiesinstance with the specified configuration details.- Parameters:
controls- theControlsSpecinstance providing the control-related configurationsappearance- theAppearanceSpecinstance providing the appearance-related configurationsbehavior- theBehaviorSpecinstance containing behavior-related configurationsrsop- theRsopSpecinstance containing the resource synchronization policy configurationsheuristics- theHeuristicSpecinstance containing heuristic-related configurations
-
PackageProperties
public PackageProperties()Default constructor for thePackagePropertiesclass.Initializes a new instance of
PackagePropertieswith default values. This constructor performs no specific actions and sets no initial configurations.
-
-
Method Details
-
getControls
Retrieves the control specifications associated with this package.- Returns:
- the
ControlsSpecinstance containing control-related configurations.
-
setControls
Updates the control specifications for the current package configuration.- Parameters:
controls- theControlsSpecinstance providing the control-related configurations to set
-
getAppearance
Retrieves the appearance specifications associated with this package.- Returns:
- the
AppearanceSpecinstance containing appearance-related configurations.
-
setAppearance
Updates the appearance configuration for the current package.- Parameters:
appearance- theAppearanceSpecinstance providing the appearance-related configurations to set
-
getBehavior
Retrieves the behavior specifications associated with this package.- Returns:
- the
BehaviorSpecinstance containing behavior-related configurations.
-
setBehavior
Updates the behavior configuration for the current package.- Parameters:
behavior- theBehaviorSpecinstance containing behavior-related configurations to set
-
getRsop
Retrieves the RSOP (Resource Synchronization Operational Policy) specification associated with this package.- Returns:
- the
RsopSpecinstance containing resource synchronization policy configurations.
-
setRsop
Updates the RSOP (Resource Synchronization Operational Policy) configuration for the current package.- Parameters:
rsop- theRsopSpecinstance containing the resource synchronization policy configurations to set
-
getHeuristics
Retrieves the heuristic specifications associated with this package.- Returns:
- the
HeuristicSpecinstance containing heuristic-related configurations.
-
setHeuristics
Updates the heuristic configuration for the current package.- Parameters:
heuristics- theHeuristicSpecinstance containing heuristic-related configurations to set
-
equals
-
hashCode
public int hashCode()
-