Class Classification

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

public final class Classification extends Object implements Serializable
Represents the classification information about a learning object in a Learning Object Metadata (LOM) document. The classification provides information about the purpose and taxonomy paths of the learning object, aiding in its categorization and retrieval.

Schema snippet:


 <complexType name="classification">
   <choice minOccurs="0" maxOccurs="unbounded">
     <group ref="purpose"/>
     <group ref="taxonPath"/>
     <group ref="description"/>
     <group ref="keyword"/>
     <group ref="ex:customElements"/>
   </choice>
   <attributeGroup ref="ag:classification"/>
 </complexType>
 
See Also:
  • Constructor Details

    • Classification

      public Classification()
      Default constructor for the Classification class. This constructor initializes a new instance of the Classification class with default, uninitialized values for all fields. It performs no additional operations.
  • Method Details

    • getPurpose

      public SourceValuePair<Purpose> getPurpose()
      Retrieves the purpose of the classification. The purpose is encapsulated as a source-value pair, where the source indicates the context or origin of the value, and the value specifies the actual purpose.
      Returns:
      a SourceValuePair containing the source and value representing the purpose
    • setPurpose

      public void setPurpose(SourceValuePair<Purpose> purpose)
      Sets the purpose of the classification. The purpose is encapsulated as a source-value pair, where the source indicates the context or origin of the value, and the value specifies the actual purpose.
      Parameters:
      purpose - a SourceValuePair containing the source and value representing the purpose
    • getTaxonPaths

      public List<TaxonPath> getTaxonPaths()
      Retrieves the list of taxon paths associated with this classification. A taxon path represents a hierarchical classification or categorization.
      Returns:
      a list of TaxonPath objects associated with the classification.
    • setTaxonPaths

      public void setTaxonPaths(List<TaxonPath> taxonPaths)
      Sets the list of taxon paths associated with this classification. A taxon path represents a hierarchical classification or categorization.
      Parameters:
      taxonPaths - a list of TaxonPath objects to associate with the classification
    • getDescription

      public UnboundLangString getDescription()
      Retrieves the description of the classification. The description is represented as a list of language strings, allowing for multilingual support.
      Returns:
      an UnboundLangString object containing the multilingual description of the classification.
    • setDescription

      public void setDescription(UnboundLangString description)
      Sets the description of the classification. The description is represented as an UnboundLangString, allowing for multilingual support.
      Parameters:
      description - an UnboundLangString object containing the multilingual description of the classification
    • getKeywords

      public UnboundLangString getKeywords()
      Retrieves the keywords associated with the classification. The keywords are represented as an UnboundLangString object, which supports multilingual strings.
      Returns:
      an UnboundLangString object containing the keywords of the classification.
    • setKeywords

      public void setKeywords(UnboundLangString keywords)
      Sets the keywords associated with the classification. The keywords are represented as an UnboundLangString, allowing for multilingual support.
      Parameters:
      keywords - an UnboundLangString object containing the keywords to associate with the classification
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object