Class PackageProperties

java.lang.Object
dev.jcputney.elearning.parser.input.lom.properties.PackageProperties
All Implemented Interfaces:
Serializable

public final class PackageProperties extends Object implements 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 Details

    • NAMESPACE_URI

      public static final String 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 new PackageProperties instance with the specified configuration details.
      Parameters:
      controls - the ControlsSpec instance providing the control-related configurations
      appearance - the AppearanceSpec instance providing the appearance-related configurations
      behavior - the BehaviorSpec instance containing behavior-related configurations
      rsop - the RsopSpec instance containing the resource synchronization policy configurations
      heuristics - the HeuristicSpec instance containing heuristic-related configurations
    • PackageProperties

      public PackageProperties()
      Default constructor for the PackageProperties class.

      Initializes a new instance of PackageProperties with default values. This constructor performs no specific actions and sets no initial configurations.

  • Method Details

    • getControls

      public ControlsSpec getControls()
      Retrieves the control specifications associated with this package.
      Returns:
      the ControlsSpec instance containing control-related configurations.
    • setControls

      public void setControls(ControlsSpec controls)
      Updates the control specifications for the current package configuration.
      Parameters:
      controls - the ControlsSpec instance providing the control-related configurations to set
    • getAppearance

      public AppearanceSpec getAppearance()
      Retrieves the appearance specifications associated with this package.
      Returns:
      the AppearanceSpec instance containing appearance-related configurations.
    • setAppearance

      public void setAppearance(AppearanceSpec appearance)
      Updates the appearance configuration for the current package.
      Parameters:
      appearance - the AppearanceSpec instance providing the appearance-related configurations to set
    • getBehavior

      public BehaviorSpec getBehavior()
      Retrieves the behavior specifications associated with this package.
      Returns:
      the BehaviorSpec instance containing behavior-related configurations.
    • setBehavior

      public void setBehavior(BehaviorSpec behavior)
      Updates the behavior configuration for the current package.
      Parameters:
      behavior - the BehaviorSpec instance containing behavior-related configurations to set
    • getRsop

      public RsopSpec getRsop()
      Retrieves the RSOP (Resource Synchronization Operational Policy) specification associated with this package.
      Returns:
      the RsopSpec instance containing resource synchronization policy configurations.
    • setRsop

      public void setRsop(RsopSpec rsop)
      Updates the RSOP (Resource Synchronization Operational Policy) configuration for the current package.
      Parameters:
      rsop - the RsopSpec instance containing the resource synchronization policy configurations to set
    • getHeuristics

      public HeuristicSpec getHeuristics()
      Retrieves the heuristic specifications associated with this package.
      Returns:
      the HeuristicSpec instance containing heuristic-related configurations.
    • setHeuristics

      public void setHeuristics(HeuristicSpec heuristics)
      Updates the heuristic configuration for the current package.
      Parameters:
      heuristics - the HeuristicSpec instance containing heuristic-related configurations to set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object