Class Identifier
java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.Identifier
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDefault constructor for theIdentifierclass.Identifier(String value) Creates an identifier from a plain text value where only an entry is provided. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the catalog associated with this identifier.getEntry()Retrieves the entry for this identifier.inthashCode()voidsetCatalog(String catalog) Sets the catalog for the identifier.voidSets the entry value for the identifier.
-
Constructor Details
-
Identifier
public Identifier()Default constructor for theIdentifierclass.Initializes a new instance of the
Identifierclass. 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
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
Retrieves the catalog associated with this identifier.- Returns:
- the catalog as a String
-
setCatalog
Sets the catalog for the identifier.- Parameters:
catalog- the catalog value to be set, represented as a String
-
getEntry
Retrieves the entry for this identifier.- Returns:
- the entry as a String
-
setEntry
Sets the entry value for the identifier.- Parameters:
entry- the entry value to be set, represented as a String
-
equals
-
hashCode
public int hashCode()
-