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 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

      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.
    • getFieldEnum

      public List<CCLicenseFieldEnum> getFieldEnum()
      Returns the list of enums of this field
      Returns:
      the list of enums of this field