Class JsonString

java.lang.Object
jadex.transformation.jsonserializer.JsonString

public class JsonString extends Object
Class representing a string containing JSON. This class can be used as parameter or return value in services to circumvent the conversion stage and directly accept or return raw JSON.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The concrete JSON string.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new JsonString object.
    Creates the JsonString object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Matches based on the internal JSON string.
    int
    Hash code based on the JSON.
    Returns the actual JSON string.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • json

      protected String json
      The concrete JSON string.
  • Constructor Details

    • JsonString

      public JsonString()
      Create a new JsonString object.
    • JsonString

      public JsonString(String json)
      Creates the JsonString object.
      Parameters:
      json - The JSON.
  • Method Details

    • hashCode

      public int hashCode()
      Hash code based on the JSON.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Matches based on the internal JSON string.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns the actual JSON string.
      Overrides:
      toString in class Object
      Returns:
      The JSON string.