public class AnnotationTypeData extends CommonData
AnnotationType
,
Annotations overviewModifier and Type | Field and Description |
---|---|
static int |
MAX_ADDEDPARAMETERNAME_LENGTH |
static int |
MAX_ADDEDPARAMETERTYPE_LENGTH |
static int |
MAX_ADDEDPARAMETERVALUE_LENGTH |
static int |
MAX_DEFAULT_VALUE_LENGTH |
static int |
MAX_OPTION_LENGTH |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
AnnotationTypeData() |
Modifier and Type | Method and Description |
---|---|
String |
getAddedParameterName()
Get the addedParameterName value.
|
String |
getAddedParameterType()
Get the addedParameterType value.
|
String |
getAddedParameterValue()
Get the addedParameterValue value.
|
String |
getDefaultValue()
The default value of new annotations.
|
ParameterValueData<?> |
getEnumerationValues()
The allowed values if this is an enumeration.
|
int |
getHeight()
The recommended height (lines) to display input fields for this
annotation in client applications.
|
Set<Integer> |
getItemTypes()
The item code for all items this annotation type can be applied to.
|
int |
getMultiplicity()
How many values are allowed for this annotations of this type. 0 = no limit
|
Map<String,String> |
getOptions()
Additional options depending on the value type.
|
int |
getValueType()
The code for the value type.
|
int |
getWidth()
The recommended width (characters) to display input fields for this
annotation in client applications.
|
boolean |
isEnumeration()
If this annotation type defines a list of allowed values or not.
|
boolean |
isRequiredForMiame()
If an annotation of this type must be present for an annotatable item to be
compliant with MIAME.
|
void |
setAddedParameterName(String addedParameterName)
Set the addedParameterName value.
|
void |
setAddedParameterType(String addedParameterType)
Set the addedParameterType value.
|
void |
setAddedParameterValue(String addedParameterValue)
Set the addedParameterValue value.
|
void |
setDefaultValue(String defaultValue) |
void |
setEnumeration(boolean isEnumeration) |
void |
setEnumerationValues(ParameterValueData<?> enumerationValues) |
void |
setHeight(int height) |
void |
setMultiplicity(int multiplicity) |
void |
setRequiredForMiame(boolean requiredForMiame) |
void |
setValueType(int valueType) |
void |
setWidth(int width) |
getDescription, getName, isRemoved, setDescription, setName, setRemoved
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
public static final int MAX_DEFAULT_VALUE_LENGTH
public static final int MAX_OPTION_LENGTH
public static final int MAX_ADDEDPARAMETERTYPE_LENGTH
public static final int MAX_ADDEDPARAMETERNAME_LENGTH
public static final int MAX_ADDEDPARAMETERVALUE_LENGTH
public AnnotationTypeData()
public int getMultiplicity()
public void setMultiplicity(int multiplicity)
public boolean isRequiredForMiame()
public void setRequiredForMiame(boolean requiredForMiame)
public boolean isEnumeration()
public void setEnumeration(boolean isEnumeration)
public int getHeight()
public void setHeight(int height)
public int getWidth()
public void setWidth(int width)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public int getValueType()
public void setValueType(int valueType)
public Set<Integer> getItemTypes()
public Map<String,String> getOptions()
public ParameterValueData<?> getEnumerationValues()
public void setEnumerationValues(ParameterValueData<?> enumerationValues)
public String getAddedParameterType()
public void setAddedParameterType(String addedParameterType)
addedParameterType
- String the addedParameterType value to set.public String getAddedParameterName()
public void setAddedParameterName(String addedParameterName)
addedParameterName
- String the addedParameterName value to set.public String getAddedParameterValue()
public void setAddedParameterValue(String addedParameterValue)
addedParameterValue
- String the addedParameterValue value to set.