Class 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 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 name
        mandatory - the mandatory
        type - the type
        defaultValue - the default value
        note - the note
        vocabulary - the vocabulary
        validator - the validator
        category - 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
      • getVocabulary

        public List<String> getVocabulary()
        Gets the vocabulary.
        Returns:
        the vocabulary
      • 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