Class MetadataField


  • public class MetadataField
    extends Object
    • Constructor Detail

      • MetadataField

        public MetadataField()
    • Method Detail

      • getTitle

        public String getTitle()
        Gets the title.
        Returns:
        the title
      • setTitle

        public void setTitle​(String title)
        Sets the title.
        Parameters:
        title - the new title
      • getDescription

        public String getDescription()
        Gets the description.
        Returns:
        the description
      • setDescription

        public void setDescription​(String description)
        Sets the description.
        Parameters:
        description - the new description
      • getId

        public int getId()
        Gets the id.
        Returns:
        the id
      • setId

        public void setId​(int id)
        Sets the id.
        Parameters:
        id - the new id
      • setRequired

        public void setRequired​(boolean required)
        Sets the required.
        Parameters:
        required - the new required
      • isRequired

        public boolean isRequired()
        Checks if this field is required. Only set if you load it in a metadataset.
        Returns:
        true, if is required
      • setType

        public void setType​(MetadataFieldType type)
        Sets the type.
        Parameters:
        type - the new type
      • getKey

        public String getKey()
        Gets the key.
        Returns:
        the key
      • setKey

        public void setKey​(String key)
        Sets the key.
        Parameters:
        key - the new key
      • getSpace

        public com.atlassian.confluence.spaces.Space getSpace()
        Gets the space.
        Returns:
        the space
      • setSpace

        public void setSpace​(com.atlassian.confluence.spaces.Space space)
        Sets the space.
        Parameters:
        space - the new space
      • isHidden

        public boolean isHidden()
        Checks if is hidden.
        Returns:
        true, if is hidden
      • setHidden

        public void setHidden​(boolean hidden)
        Sets the hidden.
        Parameters:
        hidden - the new hidden
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object