public class MetadataFieldWrapper extends Object implements Serializable
| Constructor and Description |
|---|
MetadataFieldWrapper()
Instantiates a new metadata field.
|
MetadataFieldWrapper(String fieldName,
Boolean mandatory,
DataTypeWrapper type,
String defaultValue,
String note,
List<String> vocabulary,
String validator,
CategoryWrapper category)
Instantiates a new metadata field.
|
| Modifier and Type | Method and Description |
|---|---|
FieldAsGroup |
getAsGroup() |
FieldAsTag |
getAsTag() |
String |
getDefaultValue()
Gets the defaul value.
|
String |
getFieldName()
Gets the field name.
|
String |
getFieldNameFromCategory() |
Boolean |
getMandatory()
Gets the mandatory.
|
String |
getNote()
Gets the note.
|
CategoryWrapper |
getOwnerCategory() |
DataTypeWrapper |
getType() |
String |
getValidator()
Gets the validator.
|
List<String> |
getVocabulary()
Gets the vocabulary.
|
boolean |
isMultiSelection() |
void |
setAsGroup(FieldAsGroup asGroup) |
void |
setAsTag(FieldAsTag asTag) |
void |
setDefaultValue(String defaultValue)
Sets the defaul value.
|
void |
setFieldName(String fieldName)
Sets the field name.
|
void |
setFieldNameFromCategory(String fieldNameFromCategory) |
void |
setMandatory(Boolean mandatory)
Sets the mandatory.
|
void |
setMultiSelection(boolean multiSelection) |
void |
setNote(String note)
Sets the note.
|
void |
setOwnerCategory(CategoryWrapper ownerCategory) |
void |
setType(DataTypeWrapper type) |
void |
setValidator(String validator)
Sets the validator.
|
void |
setVocabulary(List<String> vocabulary)
Sets the vocabulary.
|
String |
toString() |
public MetadataFieldWrapper()
public MetadataFieldWrapper(String fieldName, Boolean mandatory, DataTypeWrapper type, String defaultValue, String note, List<String> vocabulary, String validator, CategoryWrapper category)
fieldName - the field namemandatory - the mandatoryDataType - the typedefaulValue - the defaul valuenote - the notevocabulary - the vocabularyvalidator - the validatorpublic String getFieldName()
public Boolean getMandatory()
public String getDefaultValue()
public String getNote()
public String getValidator()
public void setFieldName(String fieldName)
fieldName - the fieldName to setpublic void setMandatory(Boolean mandatory)
mandatory - the mandatory to setpublic void setDefaultValue(String defaultValue)
defaulValue - the defaulValue to setpublic void setNote(String note)
note - the note to setpublic void setVocabulary(List<String> vocabulary)
vocabulary - the vocabulary to setpublic void setValidator(String validator)
validator - the validator to setpublic DataTypeWrapper getType()
public void setType(DataTypeWrapper type)
public boolean isMultiSelection()
public void setMultiSelection(boolean multiSelection)
public CategoryWrapper getOwnerCategory()
public void setOwnerCategory(CategoryWrapper ownerCategory)
public String getFieldNameFromCategory()
public void setFieldNameFromCategory(String fieldNameFromCategory)
public FieldAsGroup getAsGroup()
public void setAsGroup(FieldAsGroup asGroup)
public FieldAsTag getAsTag()
public void setAsTag(FieldAsTag asTag)
Copyright © 2018. All Rights Reserved.