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

public final class Resource extends Object implements 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 Details

    • Resource

      public Resource()
      Default constructor for the Resource class.

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

  • Method Details

    • getIdentifiers

      public List<Identifier> getIdentifiers()
      Retrieves the list of identifiers associated with the resource.
      Returns:
      a list of Identifier objects representing the identifiers of the resource
    • setIdentifiers

      public void setIdentifiers(List<Identifier> identifiers)
      Sets the list of identifiers associated with the resource.
      Parameters:
      identifiers - the list of Identifier objects representing the identifiers to be set
    • getDescriptions

      public UnboundLangString 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

      public void setDescriptions(UnboundLangString descriptions)
      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

      public List<CatalogEntry> getCatalogEntries()
      Retrieves the list of catalog entries associated with the resource.
      Returns:
      a list of CatalogEntry objects representing the catalog entries of the resource
    • setCatalogEntries

      public void setCatalogEntries(List<CatalogEntry> catalogEntries)
      Sets the list of catalog entries associated with the resource.
      Parameters:
      catalogEntries - the list of CatalogEntry objects representing the catalog entries to be set
    • getCustomElements

      public List<Object> getCustomElements()
      Retrieves the list of custom elements associated with the resource.
      Returns:
      a list of Object representing the custom elements of the resource
    • setCustomElements

      public void setCustomElements(List<Object> customElements)
      Sets the list of custom elements associated with the resource.
      Parameters:
      customElements - the list of Object representing the custom elements to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object