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

public final class Identifier extends Object implements Serializable
Represents an identifier for a related resource.

 <xs:complexType name="identifier">
   <xs:choice minOccurs="0" maxOccurs="unbounded">
     <xs:element name="catalog" type="catalog" minOccurs="0"/>
     <xs:element name="entry" type="entry" minOccurs="0"/>
   </xs:choice>
   <xs:attributeGroup ref="ag:identifier"/>
 </xs:complexType>
 
See Also:
  • Constructor Details

    • Identifier

      public Identifier()
      Default constructor for the Identifier class.

      Initializes a new instance of the Identifier class. This constructor is intended for use when no initial properties need to be set. It performs no operations and primarily allows object creation with a default, uninitialized state.

    • Identifier

      public Identifier(String value)
      Creates an identifier from a plain text value where only an entry is provided.
      Parameters:
      value - the string value of the identifier entry
  • Method Details

    • getCatalog

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

      public void setCatalog(String catalog)
      Sets the catalog for the identifier.
      Parameters:
      catalog - the catalog value to be set, represented as a String
    • getEntry

      public String getEntry()
      Retrieves the entry for this identifier.
      Returns:
      the entry as a String
    • setEntry

      public void setEntry(String entry)
      Sets the entry value for the identifier.
      Parameters:
      entry - the entry value to be set, represented as a String
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object