Class Resource
java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.Resource
- All Implemented Interfaces:
Serializable
Represents the
resource element in the LOM schema, containing information about a
related resource, including identifiers and descriptions.
Schema snippet:
<xs:complexType name="resource">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="identifier"/>
<xs:group ref="description"/>
<xs:group ref="ex:customElements"/>
</xs:choice>
<xs:attributeGroup ref="ag:resource"/>
</xs:complexType>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of catalog entries associated with the resource.Retrieves the list of custom elements associated with the resource.Retrieves the descriptions for the resource.Retrieves the list of identifiers associated with the resource.inthashCode()voidsetCatalogEntries(List<CatalogEntry> catalogEntries) Sets the list of catalog entries associated with the resource.voidsetCustomElements(List<Object> customElements) Sets the list of custom elements associated with the resource.voidsetDescriptions(UnboundLangString descriptions) Sets the descriptions for the resource.voidsetIdentifiers(List<Identifier> identifiers) Sets the list of identifiers associated with the resource.
-
Constructor Details
-
Resource
public Resource()Default constructor for theResourceclass.Initializes a new instance of the
Resourceclass. This constructor performs no operations and primarily exists to allow object creation without any initial state or parameters.
-
-
Method Details
-
getIdentifiers
Retrieves the list of identifiers associated with the resource.- Returns:
- a list of
Identifierobjects representing the identifiers of the resource
-
setIdentifiers
Sets the list of identifiers associated with the resource.- Parameters:
identifiers- the list ofIdentifierobjects representing the identifiers to be set
-
getDescriptions
Retrieves the descriptions for the resource. The descriptions are represented as an UnboundLangString, which supports multiple string values with language attributes.- Returns:
- an UnboundLangString containing the descriptions of the resource
-
setDescriptions
Sets the descriptions for the resource. The descriptions are represented as an UnboundLangString, which supports multiple string values with language attributes.- Parameters:
descriptions- the UnboundLangString containing the descriptions to be set
-
getCatalogEntries
Retrieves the list of catalog entries associated with the resource.- Returns:
- a list of
CatalogEntryobjects representing the catalog entries of the resource
-
setCatalogEntries
Sets the list of catalog entries associated with the resource.- Parameters:
catalogEntries- the list ofCatalogEntryobjects representing the catalog entries to be set
-
getCustomElements
Retrieves the list of custom elements associated with the resource.- Returns:
- a list of
Objectrepresenting the custom elements of the resource
-
setCustomElements
Sets the list of custom elements associated with the resource.- Parameters:
customElements- the list ofObjectrepresenting the custom elements to be set
-
equals
-
hashCode
public int hashCode()
-