Class JsonString
- java.lang.Object
-
- jadex.transformation.jsonserializer.JsonString
-
public class JsonString extends java.lang.ObjectClass 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 java.lang.StringjsonThe concrete JSON string.
-
Constructor Summary
Constructors Constructor Description JsonString()Create a new JsonString object.JsonString(java.lang.String json)Creates the JsonString object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Matches based on the internal JSON string.inthashCode()Hash code based on the JSON.java.lang.StringtoString()Returns the actual JSON string.
-
-
-
Method Detail
-
hashCode
public int hashCode()
Hash code based on the JSON.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Matches based on the internal JSON string.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the actual JSON string.- Overrides:
toStringin classjava.lang.Object- Returns:
- The JSON string.
-
-