Class RestParameter

java.lang.Object
de.dlr.proseo.ingestor.rest.model.RestParameter
All Implemented Interfaces:
Serializable

public class RestParameter extends Object implements Serializable
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • key

      protected String key
      The parameter name
    • parameterType

      protected String parameterType
      The type of the parameter for deserialization (one of { "STRING", "INTEGER", "BOOLEAN", "DOUBLE", "INSTANT" } )
    • parameterValue

      protected String parameterValue
      All parameter values are serialized to their string representations. For deserialization refer to the parameterType.
  • Constructor Details

    • RestParameter

      public RestParameter()
      Creates a new RestParameter.
    • RestParameter

      public RestParameter(String key, String parameterType, String parameterValue)
      Creates a new RestParameter.
  • Method Details

    • getKey

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

      public void setKey(String key)
      Set the key.
      Parameters:
      key - the new key
    • getParameterType

      @NotNull public @NotNull String getParameterType()
      Returns the parameterType.
      Returns:
      parameterType
    • setParameterType

      public void setParameterType(String parameterType)
      Set the parameterType.
      Parameters:
      parameterType - the new parameterType
    • getParameterValue

      @NotNull public @NotNull String getParameterValue()
      Returns the parameterValue.
      Returns:
      parameterValue
    • setParameterValue

      public void setParameterValue(String parameterValue)
      Set the parameterValue.
      Parameters:
      parameterValue - the new parameterValue
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object