Class General
java.lang.Object
dev.jcputney.elearning.parser.input.lom.General
- All Implemented Interfaces:
Serializable
Represents the
general element in the LOM schema, which provides general information
about a learning object. This includes its identifiers, titles, language, descriptions, keywords,
and other general metadata.
The following schema snippet defines the general element:
<xs:complexType name="general">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="identifier"/>
<xs:group ref="title"/>
<xs:group ref="languageIdOrNone"/>
<xs:group ref="descriptionUnbounded"/>
<xs:group ref="keyword"/>
<xs:group ref="coverage"/>
<xs:group ref="structure"/>
<xs:group ref="aggregationLevel"/>
<xs:group ref="ex:customElements"/>
</xs:choice>
<xs:attributeGroup ref="ag:general"/>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeneral()Default constructor for theGeneralclass.General(List<Identifier> identifiers, UnboundLangString title, List<CatalogEntry> catalogEntries, String language, UnboundLangString description, List<UnboundLangString> keywords, UnboundLangString coverage, SourceValuePair<Structure> structure, SourceValuePair<AggregationLevel> aggregationLevel) Constructs a newGeneralobject with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the aggregation level associated with this object.Retrieves the list of catalog entries associated with the instance.Retrieves the coverage information associated with this object.Retrieves the description associated with this object.Retrieves the list of identifiers associated with the instance.Retrieves the list of keywords associated with this object.Retrieves the language associated with this object.Retrieves the structure of the learning object associated with this instance.getTitle()Retrieves the title associated with this object.inthashCode()voidsetAggregationLevel(SourceValuePair<AggregationLevel> aggregationLevel) Sets the aggregation level for the learning object.voidsetCatalogEntries(List<CatalogEntry> catalogEntries) Sets the list of catalog entries associated with the instance.voidsetCoverage(UnboundLangString coverage) Sets the coverage information associated with this object.voidsetDescription(UnboundLangString description) Sets the description for this object.voidsetIdentifiers(List<Identifier> identifiers) Sets the list of identifiers associated with the instance.voidsetKeywords(List<UnboundLangString> keywords) Sets the list of keywords associated with this object.voidsetLanguage(String language) Sets the language associated with this object.voidsetStructure(SourceValuePair<Structure> structure) Sets the structure of the learning object associated with this instance.voidsetTitle(UnboundLangString title) Sets the title associated with this object.
-
Constructor Details
-
General
public General(List<Identifier> identifiers, UnboundLangString title, List<CatalogEntry> catalogEntries, String language, UnboundLangString description, List<UnboundLangString> keywords, UnboundLangString coverage, SourceValuePair<Structure> structure, SourceValuePair<AggregationLevel> aggregationLevel) Constructs a newGeneralobject with the specified parameters.- Parameters:
identifiers- a list ofIdentifierobjects representing the identifiers associated with this objecttitle- anUnboundLangStringrepresenting the title of this object, which may include multiple string values with language attributescatalogEntries- a list ofCatalogEntryobjects representing catalog entries associated with this objectlanguage- aStringrepresenting the language associated with this objectdescription- anUnboundLangStringrepresenting the description of this object, which may include multiple string values with language attributeskeywords- a list ofUnboundLangStringobjects representing the keywords, which may include multiple string values with language attributescoverage- anUnboundLangStringrepresenting the coverage information, which may include multiple string values with language attributesstructure- aSourceValuePair<Structure>representing the structure of the learning object associated with this instanceaggregationLevel- aSourceValuePair<AggregationLevel>representing the aggregation level, which specifies the level of granularity or complexity of the learning object
-
General
public General()Default constructor for theGeneralclass.This constructor initializes an empty instance of
Generalwithout setting any fields.
-
-
Method Details
-
getIdentifiers
Retrieves the list of identifiers associated with the instance.- Returns:
- a list of
Identifierobjects representing the identifiers
-
setIdentifiers
Sets the list of identifiers associated with the instance.- Parameters:
identifiers- a list ofIdentifierobjects representing the identifiers to be set
-
getTitle
Retrieves the title associated with this object.- Returns:
- an
UnboundLangStringrepresenting the title, which may include multiple string values with language attributes
-
setTitle
Sets the title associated with this object.- Parameters:
title- anUnboundLangStringrepresenting the title, which may include multiple string values with language attributes
-
getCatalogEntries
Retrieves the list of catalog entries associated with the instance.- Returns:
- a list of
CatalogEntryobjects representing catalog entries
-
setCatalogEntries
Sets the list of catalog entries associated with the instance.- Parameters:
catalogEntries- a list ofCatalogEntryobjects representing the catalog entries to be set
-
getLanguage
Retrieves the language associated with this object.- Returns:
- a
Stringrepresenting the language.
-
setLanguage
Sets the language associated with this object.- Parameters:
language- aStringrepresenting the language to be set
-
getDescription
Retrieves the description associated with this object.- Returns:
- an
UnboundLangStringrepresenting the description, which may include multiple string values with language attributes
-
setDescription
Sets the description for this object.- Parameters:
description- anUnboundLangStringrepresenting the description, which may include multiple string values with language attributes
-
getKeywords
Retrieves the list of keywords associated with this object.- Returns:
- a list of
UnboundLangStringobjects representing the keywords, which may include multiple string values with language attributes
-
setKeywords
Sets the list of keywords associated with this object.- Parameters:
keywords- a list ofUnboundLangStringobjects representing the keywords, which may include multiple string values with language attributes
-
getCoverage
Retrieves the coverage information associated with this object.- Returns:
- an
UnboundLangStringrepresenting the coverage, which may include multiple string values with language attributes.
-
setCoverage
Sets the coverage information associated with this object.- Parameters:
coverage- anUnboundLangStringrepresenting the coverage, which may include multiple string values with language attributes.
-
getStructure
Retrieves the structure of the learning object associated with this instance.- Returns:
- a
SourceValuePair<Structure>representing the structure, which indicates the organizational form of the learning object.
-
setStructure
Sets the structure of the learning object associated with this instance.- Parameters:
structure- aSourceValuePair<Structure>representing the structure to be set. This indicates the organizational form of the learning object, such as atomic, collection, networked, hierarchical, or linear.
-
getAggregationLevel
Retrieves the aggregation level associated with this object.- Returns:
- a
SourceValuePair<AggregationLevel>representing the aggregation level, which specifies the level of granularity or complexity of the learning object.
-
setAggregationLevel
Sets the aggregation level for the learning object. The aggregation level specifies the level of granularity or complexity of the learning object.- Parameters:
aggregationLevel- aSourceValuePair<AggregationLevel>representing the aggregation level to be set. Possible values include LEVEL_1, LEVEL_2, LEVEL_3, LEVEL_4, or UNKNOWN.
-
equals
-
hashCode
public int hashCode()
-