Class LifeCycle
java.lang.Object
dev.jcputney.elearning.parser.input.lom.LifeCycle
- All Implemented Interfaces:
Serializable
Represents the lifecycle information about a learning object in a Learning Object Metadata (LOM)
document. The lifecycle category provides metadata describing the history and current state of
the learning object and those who have contributed to its creation and maintenance.
The lifecycle element typically includes information such as the version of the object, its status, and the roles and contributions of various entities involved in the object's lifecycle.
Schema snippet:
<complexType name="lifeCycle">
<choice minOccurs="0" maxOccurs="unbounded">
<group ref="version"/>
<group ref="status"/>
<group ref="contribute"/>
<group ref="ex:customElements"/>
</choice>
<attributeGroup ref="ag:lifeCycle"/>
</complexType>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of contributions associated with the lifecycle object.Retrieves the list of custom elements associated with the lifecycle object.Retrieves the current status of the lifecycle object as aSourceValuePair<Status>.Retrieves the version as an object of typeUnboundLangString.inthashCode()voidsetContribute(List<Contribute> contribute) Sets the list of contributions associated with the lifecycle object.voidsetCustomElements(List<Object> customElements) Sets the list of custom elements associated with the lifecycle object.voidsetStatus(SourceValuePair<Status> status) Sets the status information for the lifecycle object.voidsetVersion(UnboundLangString version) Sets the version information for the lifecycle object.
-
Constructor Details
-
LifeCycle
public LifeCycle()Default constructor for the LifeCycle class. Initializes a new instance of the LifeCycle object with no predefined values or configurations.
-
-
Method Details
-
getVersion
Retrieves the version as an object of typeUnboundLangString.- Returns:
- the
UnboundLangStringobject representing the version information
-
setVersion
Sets the version information for the lifecycle object.- Parameters:
version- theUnboundLangStringobject representing the version details to set
-
getStatus
Retrieves the current status of the lifecycle object as aSourceValuePair<Status>.- Returns:
- the
SourceValuePair<Status>object representing the status, which includes the source of the status and its corresponding value.
-
setStatus
Sets the status information for the lifecycle object.- Parameters:
status- theSourceValuePair<Status>object representing the status information to be set. This includes the source of the status and its corresponding value, indicating the state of the learning object (e.g., draft, final, revised, or unavailable).
-
getContribute
Retrieves the list of contributions associated with the lifecycle object.- Returns:
- a
ListofContributeobjects representing the contributions.
-
setContribute
Sets the list of contributions associated with the lifecycle object.- Parameters:
contribute- aListofContributeobjects representing the contributions to be associated with the lifecycle object.
-
getCustomElements
Retrieves the list of custom elements associated with the lifecycle object.- Returns:
- a
ListofObjectelements representing the custom attributes or extensions.
-
setCustomElements
Sets the list of custom elements associated with the lifecycle object.- Parameters:
customElements- aListofObjectelements representing the custom attributes or extensions to be associated with the lifecycle object.
-
equals
-
hashCode
public int hashCode()
-