Class Taxon
java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.Taxon
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of custom elements for the taxon.getEntry()Retrieves the entry for the taxon.getId()Retrieves the unique identifier for the taxon.inthashCode()voidsetCustomElements(List<Object> customElements) Sets the list of custom elements associated with this taxon.voidsetEntry(SingleLangString entry) Sets the entry associated with the taxon.voidSets the unique identifier for the taxon.
-
Constructor Details
-
Taxon
public Taxon()Default constructor for theTaxonclass.Initializes a new instance of the
Taxonclass. This constructor performs no operations and is primarily provided to allow object creation without any initial parameters or state.
-
-
Method Details
-
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
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
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
Sets the entry associated with the taxon. The entry is represented as an instance ofSingleLangString, which typically includes a string value and a language attribute.- Parameters:
entry- theSingleLangStringobject to be set as the entry for this taxon
-
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
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
-
hashCode
public int hashCode()
-