Class TaxonPath
java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.TaxonPath
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of custom elements associated with this TaxonPath.Retrieves the source field of the TaxonPath.Retrieves the list of taxons associated with this TaxonPath.inthashCode()voidsetCustomElements(List<Object> customElements) Sets the list of custom elements associated with this TaxonPath.voidsetSource(SingleLangString source) Sets the source field for the TaxonPath.voidSets the list of taxons associated with this TaxonPath.
-
Constructor Details
-
TaxonPath
Constructs a new instance of theTaxonPathclass.- Parameters:
source- theSingleLangStringobject representing metadata that describes the taxonomy sourcetaxons- the list ofTaxonobjects representing specific concepts or categories in a classification hierarchycustomElements- a list ofObjectrepresenting additional metadata or implementation-specific extensions for the taxonomy
-
TaxonPath
public TaxonPath()Default constructor for theTaxonPathclass. Initializes a new instance of theTaxonPathwith no parameters. This constructor creates aTaxonPathobject with default values and no initial state for its fields.
-
-
Method Details
-
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
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
Retrieves the list of taxons associated with this TaxonPath. Taxons represent specific concepts or categories in a classification hierarchy.- Returns:
- a list of
Taxonobjects associated with this TaxonPath. Each taxon represents a concept or category in a taxonomy.
-
setTaxons
Sets the list of taxons associated with this TaxonPath. Taxons represent specific concepts or categories in a classification hierarchy.- Parameters:
taxons- the list ofTaxonobjects to associate with this TaxonPath. Each taxon represents a concept or category in a taxonomy hierarchy.
-
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
Objectrepresenting the custom elements associated with this TaxonPath.
-
setCustomElements
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 ofObjectrepresenting the custom elements to associate with this TaxonPath
-
equals
-
hashCode
public int hashCode()
-