Class ExitTypesSpec
java.lang.Object
dev.jcputney.elearning.parser.input.lom.properties.ExitTypesSpec
- All Implemented Interfaces:
Serializable
Represents the exitTypesSpec complex type.
The following schema snippet specifies its contents:
<xs:complexType name="exitTypesSpec">
<xs:all>
<xs:element name="normal" type="exitActionType" minOccurs="0" maxOccurs="1" />
<xs:element name="suspend" type="exitActionType" minOccurs="0" maxOccurs="1" />
<xs:element name="timeout" type="exitActionType" minOccurs="0" maxOccurs="1" />
<xs:element name="logout" type="exitActionType" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for theExitTypesSpecclass.ExitTypesSpec(ExitActionType normal, ExitActionType suspend, ExitActionType timeout, ExitActionType logout) Constructs an instance ofExitTypesSpecwith the specified exit action types for different scenarios: normal, suspend, timeout, and logout. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the exit action type associated with the logout operation.Retrieves the exit action type associated with a normal exit.Retrieves the exit action type associated with the suspend operation.Retrieves the exit action type associated with the timeout operation.inthashCode()voidsetLogout(ExitActionType logout) Sets the exit action type associated with the logout operation.voidsetNormal(ExitActionType normal) Sets the exit action type associated with a normal exit.voidsetSuspend(ExitActionType suspend) Sets the exit action type associated with the suspend operation.voidsetTimeout(ExitActionType timeout) Sets the exit action type associated with the timeout operation.
-
Constructor Details
-
ExitTypesSpec
public ExitTypesSpec(ExitActionType normal, ExitActionType suspend, ExitActionType timeout, ExitActionType logout) Constructs an instance ofExitTypesSpecwith the specified exit action types for different scenarios: normal, suspend, timeout, and logout.- Parameters:
normal- the exit action type associated with a normal exitsuspend- the exit action type associated with the suspend operationtimeout- the exit action type associated with the timeout operationlogout- the exit action type associated with the logout operation
-
ExitTypesSpec
public ExitTypesSpec()Default constructor for theExitTypesSpecclass.Creates an instance of
ExitTypesSpecwith no predefined exit action types. This constructor initializes the object to a default state with no set values for normal, suspend, timeout, or logout exit types.
-
-
Method Details
-
getNormal
Retrieves the exit action type associated with a normal exit.- Returns:
- the exit action type for normal exit, or null if not defined
-
setNormal
Sets the exit action type associated with a normal exit.- Parameters:
normal- the exit action type for normal exit
-
getSuspend
Retrieves the exit action type associated with the suspend operation.- Returns:
- the exit action type for suspend operation, or null if not defined
-
setSuspend
Sets the exit action type associated with the suspend operation.- Parameters:
suspend- the exit action type for suspend operation
-
getTimeout
Retrieves the exit action type associated with the timeout operation.- Returns:
- the exit action type for timeout operation, or null if not defined
-
setTimeout
Sets the exit action type associated with the timeout operation.- Parameters:
timeout- the exit action type for timeout operation
-
getLogout
Retrieves the exit action type associated with the logout operation.- Returns:
- the exit action type for logout operation, or null if not defined
-
setLogout
Sets the exit action type associated with the logout operation.- Parameters:
logout- the exit action type for the logout operation
-
equals
-
hashCode
public int hashCode()
-