Package org.dspace.license
Class CCLicenseField
- java.lang.Object
-
- org.dspace.license.CCLicenseField
-
public class CCLicenseField extends Object
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
Constructors Constructor Description CCLicenseField(String id, String label)Construct a new LicenseField class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Map<String,String>getEnum()StringgetId()StringgetLabel()StringgetType()voidsetDescription(String description)voidsetLabel(String label)voidsetType(String type)
-
-
-
Constructor Detail
-
CCLicenseField
public CCLicenseField(String id, String label)
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 Detail
-
getId
public String getId()
- Returns:
- Returns the identifier for this field.
-
getDescription
public String getDescription()
- Returns:
- Returns the description of the field.
-
setDescription
public void setDescription(String description)
- Parameters:
description- The new description; this is often used as a tooltip when generating user interfaces.
-
getLabel
public String getLabel()
- Returns:
- Returns the label.
-
setLabel
public void setLabel(String label)
- Parameters:
label- The label to set.
-
getType
public String getType()
- Returns:
- Returns the type.
-
setType
public void setType(String type)
- Parameters:
type- The type to set.
-
-