Package org.dspace.license
Class CCLicenseField
java.lang.Object
org.dspace.license.CCLicenseField
Wrapper class for representation of a license field declaration.
A license field is a single "question" which must be answered to
successfully generate a license.
-
Constructor Summary
ConstructorsConstructorDescriptionCCLicenseField(String id, String label, String description, List<CCLicenseFieldEnum> fieldEnum) Construct a new LicenseField class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of enums of this fieldgetId()getLabel()getType()voidsetDescription(String description) voidvoid
-
Constructor Details
-
CCLicenseField
public CCLicenseField(String id, String label, String description, List<CCLicenseFieldEnum> fieldEnum) Construct a new LicenseField class. Note that after construction, at least the type should be set.- Parameters:
id- The unique identifier for this field; this value will be used in constructing the answers XML.label- The label to use when generating the user interface.
-
-
Method Details
-
getId
- Returns:
- Returns the identifier for this field.
-
getDescription
- Returns:
- Returns the description of the field.
-
setDescription
- Parameters:
description- The new description; this is often used as a tooltip when generating user interfaces.
-
getLabel
- Returns:
- Returns the label.
-
setLabel
- Parameters:
label- The label to set.
-
getType
- Returns:
- Returns the type.
-
setType
- Parameters:
type- The type to set.
-
getFieldEnum
Returns the list of enums of this field- Returns:
- the list of enums of this field
-