Class ServiceParameter

java.lang.Object
org.gcube.portlets.user.uriresolvermanager.entity.ServiceParameter

public class ServiceParameter extends Object
Author:
Francesco Mangiacrapa (francesco.mangiacrapa@isti.cnr.it) Oct 14, 2014
  • Constructor Details

    • ServiceParameter

      public ServiceParameter(String key, String value, boolean isMandatory)
      Constructor for ServiceParameter.
      Parameters:
      key - the key of the parameter
      value - the default value of the parameter
      isMandatory - true if the parameter is mandatory, false otherwise
    • ServiceParameter

      public ServiceParameter(String key, boolean isMandatory)
      Constructor for ServiceParameter.
      Parameters:
      key - the key of the parameter
      isMandatory - true if the parameter is mandatory, false otherwise
  • Method Details

    • getKey

      public String getKey()
      Gets the key of the parameter.
      Returns:
      the key of the parameter
    • getDefaultValue

      public String getDefaultValue()
      Gets the default value of the parameter.
      Returns:
      the default value of the parameter
    • isMandatory

      public boolean isMandatory()
      Checks if the parameter is mandatory.
      Returns:
      true if the parameter is mandatory, false otherwise
    • setKey

      public void setKey(String key)
      Sets the key of the parameter.
      Parameters:
      key - the key to set
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
      Sets the default value of the parameter.
      Parameters:
      defaultValue - the default value to set
    • setMandatory

      public void setMandatory(boolean isMandatory)
      Sets whether the parameter is mandatory.
      Parameters:
      isMandatory - true if the parameter is mandatory, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object