Package com.almis.awe.model.dto
Class QueryParameter
java.lang.Object
com.almis.awe.model.dto.QueryParameter
- All Implemented Interfaces:
Copyable
,Serializable
Class that holds information of Query Variable obtained from AWERequest parameters
- Author:
- jbellon
- See Also:
-
Constructor Summary
ConstructorDescriptionQueryParameter
(QueryParameter other) Copy constructorQueryParameter
(com.fasterxml.jackson.databind.JsonNode value) ConstructorQueryParameter
(com.fasterxml.jackson.databind.JsonNode value, boolean isList, ParameterType type) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Get a copy of this elementboolean
getType()
Get parameter typecom.fasterxml.jackson.databind.JsonNode
getValue()
Retrieves the valueint
hashCode()
boolean
isList()
Retrieves whether if it's a list or notvoid
setList
(boolean isList) Sets whether if it's a list or notvoid
setType
(ParameterType type) Set parameter typevoid
setValue
(com.fasterxml.jackson.databind.JsonNode value) Sets the valuetoString()
-
Constructor Details
-
QueryParameter
Copy constructor- Parameters:
other
- QueryParameter object
-
QueryParameter
public QueryParameter(com.fasterxml.jackson.databind.JsonNode value) Constructor- Parameters:
value
- Parameter value
-
QueryParameter
public QueryParameter(com.fasterxml.jackson.databind.JsonNode value, boolean isList, ParameterType type) Constructor- Parameters:
value
- Parameter valueisList
- Is listtype
- Parameter type
-
-
Method Details
-
getValue
public com.fasterxml.jackson.databind.JsonNode getValue()Retrieves the value- Returns:
- value
-
setValue
public void setValue(com.fasterxml.jackson.databind.JsonNode value) Sets the value- Parameters:
value
- Parameter value
-
isList
public boolean isList()Retrieves whether if it's a list or not- Returns:
- isList
-
setList
public void setList(boolean isList) Sets whether if it's a list or not- Parameters:
isList
- Parameter is list
-
getType
Get parameter type- Returns:
- Parameter type
-
setType
Set parameter type- Parameters:
type
- Parameter type
-
toString
-
equals
-
hashCode
public int hashCode() -
copy
Description copied from interface:Copyable
Get a copy of this element
-