Class Rights
java.lang.Object
dev.jcputney.elearning.parser.input.lom.Rights
- All Implemented Interfaces:
Serializable
Represents the rights information of a learning object, including cost, copyright, and
descriptions.
This class is part of the Learning Object Metadata (LOM) model and is used to describe the rights associated with a learning object.
Schema snippet:
<complexType name="rights">
<complexContent>
<extension base="rightsVocab">
<attributeGroup ref="ag:rights"/>
</extension>
</complexContent>
</complexType>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the copyright and other restrictions information associated with the learning object.getCost()Retrieves the cost information associated with the learning object.Retrieves the descriptions associated with the learning object.inthashCode()voidsetCopyrightAndOtherRestrictions(SourceValuePair<CopyrightAndOtherRestrictions> copyrightAndOtherRestrictions) Sets the copyright and other restrictions information associated with the learning object.voidsetCost(SourceValuePair<Cost> cost) Sets the cost information associated with the learning object.voidsetDescriptions(UnboundLangString descriptions) Sets the descriptions associated with the learning object.
-
Constructor Details
-
Rights
public Rights()Default constructor for the Rights class. Initializes an instance of the Rights class with no specific configuration or properties.
-
-
Method Details
-
getCost
Retrieves the cost information associated with the learning object. The cost is represented as a source-value pair, where the source indicates the origin or reference for the cost information, and the value specifies whether the learning object has a cost, does not have a cost, or if the cost is unknown.- Returns:
- a SourceValuePair of type Cost, indicating the source and value of the cost information
-
setCost
Sets the cost information associated with the learning object. The cost is specified as a source-value pair, where the source indicates the origin of the cost data and the value specifies whether the object has a cost, does not have a cost, or its cost status is unknown.- Parameters:
cost- a SourceValuePair object containing the cost information, where the value is an enumeration of type Cost indicating the cost status of the learning object
-
getCopyrightAndOtherRestrictions
Retrieves the copyright and other restrictions information associated with the learning object. The information is represented as a source-value pair, where the source indicates the origin or reference for the restriction information, and the value specifies whether the learning object has restrictions, does not have restrictions, or if the status is unknown.- Returns:
- a SourceValuePair of type CopyrightAndOtherRestrictions, indicating the source and value of the copyright and other restrictions information
-
setCopyrightAndOtherRestrictions
public void setCopyrightAndOtherRestrictions(SourceValuePair<CopyrightAndOtherRestrictions> copyrightAndOtherRestrictions) Sets the copyright and other restrictions information associated with the learning object. The information is specified as a source-value pair, where the source indicates the origin of the restriction data and the value specifies whether the object has restrictions, does not have restrictions, or if the status is unknown.- Parameters:
copyrightAndOtherRestrictions- a SourceValuePair of type CopyrightAndOtherRestrictions, containing the source and value for the restrictions
-
getDescriptions
Retrieves the descriptions associated with the learning object.- Returns:
- an UnboundLangString object representing the descriptions, which may contain multiple language-specific strings.
-
setDescriptions
Sets the descriptions associated with the learning object. The descriptions are represented as an UnboundLangString, which may contain multiple language-specific strings.- Parameters:
descriptions- an UnboundLangString object representing the descriptions of the learning object, including multiple localized strings if applicable
-
equals
-
hashCode
public int hashCode()
-