Class LifeCycle

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

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

      public UnboundLangString getVersion()
      Retrieves the version as an object of type UnboundLangString.
      Returns:
      the UnboundLangString object representing the version information
    • setVersion

      public void setVersion(UnboundLangString version)
      Sets the version information for the lifecycle object.
      Parameters:
      version - the UnboundLangString object representing the version details to set
    • getStatus

      public SourceValuePair<Status> getStatus()
      Retrieves the current status of the lifecycle object as a SourceValuePair<Status>.
      Returns:
      the SourceValuePair<Status> object representing the status, which includes the source of the status and its corresponding value.
    • setStatus

      public void setStatus(SourceValuePair<Status> status)
      Sets the status information for the lifecycle object.
      Parameters:
      status - the SourceValuePair<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

      public List<Contribute> getContribute()
      Retrieves the list of contributions associated with the lifecycle object.
      Returns:
      a List of Contribute objects representing the contributions.
    • setContribute

      public void setContribute(List<Contribute> contribute)
      Sets the list of contributions associated with the lifecycle object.
      Parameters:
      contribute - a List of Contribute objects representing the contributions to be associated with the lifecycle object.
    • getCustomElements

      public List<Object> getCustomElements()
      Retrieves the list of custom elements associated with the lifecycle object.
      Returns:
      a List of Object elements representing the custom attributes or extensions.
    • setCustomElements

      public void setCustomElements(List<Object> customElements)
      Sets the list of custom elements associated with the lifecycle object.
      Parameters:
      customElements - a List of Object elements representing the custom attributes or extensions to be associated with the lifecycle object.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object