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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.
getEnum
public Map<String,String> getEnum()
- Returns:
- Returns an instance implementing the Map interface;
the instance contains a mapping from identifiers to
labels for the enumeration values.
- See Also:
Map
Copyright © 2011 DuraSpace. All Rights Reserved.