Class CatalogEntry

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

public final class CatalogEntry extends Object implements Serializable
Represents a catalog entry in LOM metadata. This type is used for fields that require a catalog entry.

 <xsd:complexType name="catalogentryType" mixed="true">
 		<xsd:sequence>
 			<xsd:element ref="catalog"/>
 			<xsd:element ref="entry"/>
 			<xsd:group ref="grp.any"/>
 		</xsd:sequence>
 	</xsd:complexType>
 
See Also:
  • Constructor Details

    • CatalogEntry

      public CatalogEntry()
      Default constructor for the CatalogEntry class.

      Initializes an empty instance of the CatalogEntry object with no assigned catalog or entry values. Primarily used for deserialization or creating placeholders before explicit values are set.

  • Method Details

    • getCatalog

      public String getCatalog()
      Retrieves the catalog associated with this catalog entry.
      Returns:
      the catalog as a string
    • setCatalog

      public void setCatalog(String catalog)
      Sets the catalog for this catalog entry.
      Parameters:
      catalog - the name of the catalog to set
    • getEntry

      public UnboundLangString getEntry()
      Retrieves the entry associated with this catalog entry.
      Returns:
      the entry as an UnboundLangString, representing multiple language-specific string values
    • setEntry

      public void setEntry(UnboundLangString entry)
      Sets the entry for this catalog entry.
      Parameters:
      entry - the entry to set, represented as an UnboundLangString containing multiple language-specific string values
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object