Class ServiceParameter
java.lang.Object
org.gcube.portlets.user.uriresolvermanager.entity.ServiceParameter
- Author:
- Francesco Mangiacrapa (francesco.mangiacrapa@isti.cnr.it) Oct 14, 2014
-
Constructor Summary
ConstructorsConstructorDescriptionServiceParameter(String key, boolean isMandatory) Constructor for ServiceParameter.ServiceParameter(String key, String value, boolean isMandatory) Constructor for ServiceParameter. -
Method Summary
Modifier and TypeMethodDescriptionGets the default value of the parameter.getKey()Gets the key of the parameter.booleanChecks if the parameter is mandatory.voidsetDefaultValue(String defaultValue) Sets the default value of the parameter.voidSets the key of the parameter.voidsetMandatory(boolean isMandatory) Sets whether the parameter is mandatory.toString()
-
Constructor Details
-
ServiceParameter
Constructor for ServiceParameter.- Parameters:
key- the key of the parametervalue- the default value of the parameterisMandatory- true if the parameter is mandatory, false otherwise
-
ServiceParameter
Constructor for ServiceParameter.- Parameters:
key- the key of the parameterisMandatory- true if the parameter is mandatory, false otherwise
-
-
Method Details
-
getKey
Gets the key of the parameter.- Returns:
- the key of the parameter
-
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
Sets the key of the parameter.- Parameters:
key- the key to set
-
setDefaultValue
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
-