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

public final class TaxonPath extends Object implements Serializable
Represents a taxon path in the Learning Object Metadata (LOM) schema. A taxon path defines a hierarchical classification or categorization of a learning object, consisting of a source and a list of taxa.

Schema snippet:


 <xs:complexType name="taxonPath">
   <xs:choice minOccurs="0" maxOccurs="unbounded">
     <xs:group ref="source"/>
     <xs:group ref="taxon"/>
     <xs:group ref="ex:customElements"/>
   </xs:choice>
   <xs:attributeGroup ref="ag:taxonPath"/>
 </xs:complexType>
 
See Also:
  • Constructor Details

    • TaxonPath

      public TaxonPath(SingleLangString source, List<Taxon> taxons, List<Object> customElements)
      Constructs a new instance of the TaxonPath class.
      Parameters:
      source - the SingleLangString object representing metadata that describes the taxonomy source
      taxons - the list of Taxon objects representing specific concepts or categories in a classification hierarchy
      customElements - a list of Object representing additional metadata or implementation-specific extensions for the taxonomy
    • TaxonPath

      public TaxonPath()
      Default constructor for the TaxonPath class. Initializes a new instance of the TaxonPath with no parameters. This constructor creates a TaxonPath object with default values and no initial state for its fields.
  • Method Details

    • getSource

      public SingleLangString getSource()
      Retrieves the source field of the TaxonPath. The source represents metadata describing the taxonomy source as a SingleLangString object.
      Returns:
      the source as a SingleLangString object
    • setSource

      public void setSource(SingleLangString source)
      Sets the source field for the TaxonPath. The source represents metadata describing the taxonomy source as a SingleLangString object.
      Parameters:
      source - the SingleLangString representing the metadata of the taxonomy source
    • getTaxons

      public List<Taxon> getTaxons()
      Retrieves the list of taxons associated with this TaxonPath. Taxons represent specific concepts or categories in a classification hierarchy.
      Returns:
      a list of Taxon objects associated with this TaxonPath. Each taxon represents a concept or category in a taxonomy.
    • setTaxons

      public void setTaxons(List<Taxon> taxons)
      Sets the list of taxons associated with this TaxonPath. Taxons represent specific concepts or categories in a classification hierarchy.
      Parameters:
      taxons - the list of Taxon objects to associate with this TaxonPath. Each taxon represents a concept or category in a taxonomy hierarchy.
    • getCustomElements

      public List<Object> getCustomElements()
      Retrieves the list of custom elements associated with this TaxonPath. Custom elements represent additional metadata or extensions specific to a particular implementation or use case.
      Returns:
      a list of Object representing the custom elements associated with this TaxonPath.
    • setCustomElements

      public void setCustomElements(List<Object> customElements)
      Sets the list of custom elements associated with this TaxonPath. Custom elements are additional metadata or extensions that provide implementation-specific information.
      Parameters:
      customElements - a list of Object representing the custom elements to associate with this TaxonPath
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object