Class MetadataFieldWrapper
- java.lang.Object
-
- org.gcube.portlets.widgets.ckandatapublisherwidget.shared.metadata.MetadataFieldWrapper
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,Serializable
public class MetadataFieldWrapper extends Object implements Serializable, com.google.gwt.user.client.rpc.IsSerializable
The Class MetadataFieldWrapper.- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it), francesco-mangiacrapa at ISTI-CNR (costantino.perciante@isti.cnr.it)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldAsGroupgetAsGroup()Gets the as group.FieldAsTaggetAsTag()Gets the as tag.StringgetDefaultValue()Gets the defaul value.StringgetFieldName()Gets the field name.StringgetFieldNameFromCategory()Gets the field name from category.BooleangetMandatory()Gets the mandatory.IntegergetMaxOccurs()Gets the max occurs.StringgetNote()Gets the note.CategoryWrappergetOwnerCategory()Gets the owner category.DataTypeWrappergetType()Gets the type.StringgetValidator()Gets the validator.List<String>getVocabulary()Gets the vocabulary.booleanisMultiSelection()Checks if is multi selection.voidsetAsGroup(FieldAsGroup asGroup)Sets the as group.voidsetAsTag(FieldAsTag asTag)Sets the as tag.voidsetDefaultValue(String defaultValue)Sets the defaul value.voidsetFieldName(String fieldName)Sets the field name.voidsetFieldNameFromCategory(String fieldNameFromCategory)Sets the field name from category.voidsetMandatory(Boolean mandatory)Sets the mandatory.voidsetMaxOccurs(Integer maxOccurs)Sets the max occurs.voidsetMultiSelection(boolean multiSelection)Sets the multi selection.voidsetNote(String note)Sets the note.voidsetOwnerCategory(CategoryWrapper ownerCategory)Sets the owner category.voidsetType(DataTypeWrapper type)Sets the type.voidsetValidator(String validator)Sets the validator.voidsetVocabulary(List<String> vocabulary)Sets the vocabulary.StringtoString()
-
-
-
Constructor Detail
-
MetadataFieldWrapper
public MetadataFieldWrapper()
Instantiates a new metadata field.
-
MetadataFieldWrapper
public MetadataFieldWrapper(String fieldName, Boolean mandatory, DataTypeWrapper type, String defaultValue, String note, List<String> vocabulary, String validator, CategoryWrapper category)
Instantiates a new metadata field.- Parameters:
fieldName- the field namemandatory- the mandatorytype- the typedefaultValue- the default valuenote- the notevocabulary- the vocabularyvalidator- the validatorcategory- the category
-
-
Method Detail
-
getMaxOccurs
public Integer getMaxOccurs()
Gets the max occurs.- Returns:
- the max occurs
-
setMaxOccurs
public void setMaxOccurs(Integer maxOccurs)
Sets the max occurs.- Parameters:
maxOccurs- the new max occurs
-
getFieldName
public String getFieldName()
Gets the field name.- Returns:
- the fieldName
-
getMandatory
public Boolean getMandatory()
Gets the mandatory.- Returns:
- the mandatory
-
getDefaultValue
public String getDefaultValue()
Gets the defaul value.- Returns:
- the defaulValue
-
getNote
public String getNote()
Gets the note.- Returns:
- the note
-
getValidator
public String getValidator()
Gets the validator.- Returns:
- the validator
-
setFieldName
public void setFieldName(String fieldName)
Sets the field name.- Parameters:
fieldName- the fieldName to set
-
setMandatory
public void setMandatory(Boolean mandatory)
Sets the mandatory.- Parameters:
mandatory- the mandatory to set
-
setDefaultValue
public void setDefaultValue(String defaultValue)
Sets the defaul value.- Parameters:
defaultValue- the new default value
-
setNote
public void setNote(String note)
Sets the note.- Parameters:
note- the note to set
-
setVocabulary
public void setVocabulary(List<String> vocabulary)
Sets the vocabulary.- Parameters:
vocabulary- the vocabulary to set
-
setValidator
public void setValidator(String validator)
Sets the validator.- Parameters:
validator- the validator to set
-
getType
public DataTypeWrapper getType()
Gets the type.- Returns:
- the type
-
setType
public void setType(DataTypeWrapper type)
Sets the type.- Parameters:
type- the new type
-
isMultiSelection
public boolean isMultiSelection()
Checks if is multi selection.- Returns:
- true, if is multi selection
-
setMultiSelection
public void setMultiSelection(boolean multiSelection)
Sets the multi selection.- Parameters:
multiSelection- the new multi selection
-
getOwnerCategory
public CategoryWrapper getOwnerCategory()
Gets the owner category.- Returns:
- the owner category
-
setOwnerCategory
public void setOwnerCategory(CategoryWrapper ownerCategory)
Sets the owner category.- Parameters:
ownerCategory- the new owner category
-
getFieldNameFromCategory
public String getFieldNameFromCategory()
Gets the field name from category.- Returns:
- the field name from category
-
setFieldNameFromCategory
public void setFieldNameFromCategory(String fieldNameFromCategory)
Sets the field name from category.- Parameters:
fieldNameFromCategory- the new field name from category
-
getAsGroup
public FieldAsGroup getAsGroup()
Gets the as group.- Returns:
- the as group
-
setAsGroup
public void setAsGroup(FieldAsGroup asGroup)
Sets the as group.- Parameters:
asGroup- the new as group
-
getAsTag
public FieldAsTag getAsTag()
Gets the as tag.- Returns:
- the as tag
-
setAsTag
public void setAsTag(FieldAsTag asTag)
Sets the as tag.- Parameters:
asTag- the new as tag
-
-