Class QueryParameter

java.lang.Object
com.almis.awe.model.dto.QueryParameter
All Implemented Interfaces:
Copyable, Serializable

public class QueryParameter extends Object implements Copyable
Class that holds information of Query Variable obtained from AWERequest parameters
Author:
jbellon
See Also:
  • Constructor Details

    • QueryParameter

      public QueryParameter(QueryParameter other)
      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 value
      isList - Is list
      type - 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

      public ParameterType getType()
      Get parameter type
      Returns:
      Parameter type
    • setType

      public void setType(ParameterType type)
      Set parameter type
      Parameters:
      type - Parameter type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object anotherObject)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • copy

      public QueryParameter copy()
      Description copied from interface: Copyable
      Get a copy of this element
      Specified by:
      copy in interface Copyable
      Returns:
      element copy