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

public final class Taxon extends Object implements Serializable
Represents a taxon within a taxon path in the Learning Object Metadata (LOM) schema. A taxon is used to identify a specific concept or category in a classification hierarchy.

Schema snippet:


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

    • Taxon

      public Taxon()
      Default constructor for the Taxon class.

      Initializes a new instance of the Taxon class. This constructor performs no operations and is primarily provided to allow object creation without any initial parameters or state.

  • Method Details

    • getId

      public String getId()
      Retrieves the unique identifier for the taxon.
      Returns:
      the identifier of the taxon as a string, which is typically used to reference the taxon in a classification system.
    • setId

      public void setId(String id)
      Sets the unique identifier for the taxon.
      Parameters:
      id - the identifier to be set for the taxon, typically a string used in a classification or taxonomy system
    • getEntry

      public SingleLangString getEntry()
      Retrieves the entry for the taxon.
      Returns:
      the entry associated with the taxon, represented as a SingleLangString, which typically contains a string value and its corresponding language attribute
    • setEntry

      public void setEntry(SingleLangString entry)
      Sets the entry associated with the taxon. The entry is represented as an instance of SingleLangString, which typically includes a string value and a language attribute.
      Parameters:
      entry - the SingleLangString object to be set as the entry for this taxon
    • getCustomElements

      public List<Object> getCustomElements()
      Retrieves the list of custom elements for the taxon. Custom elements are additional elements associated with the taxon that are not part of the core taxonomy structure.
      Returns:
      a list of objects representing the custom elements associated with this taxon
    • setCustomElements

      public void setCustomElements(List<Object> customElements)
      Sets the list of custom elements associated with this taxon. Custom elements represent additional user-defined data that is not part of the core taxonomy structure.
      Parameters:
      customElements - the list of custom elements to associate with this taxon, where each element is represented as an Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object