Class JSONStringValue
- java.lang.Object
-
- com.dynatrace.openkit.util.json.objects.JSONValue
-
- com.dynatrace.openkit.util.json.objects.JSONStringValue
-
public class JSONStringValue extends JSONValue
JSON value class representing a string value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JSONStringValuefromString(java.lang.String stringValue)Factory method to create aJSONStringValueand initialize it with given string.java.lang.StringgetValue()Get the underlying string.booleanisString()Get a boolean indicating whether this instance represents a JSON string value or not.
-
-
-
Method Detail
-
fromString
public static JSONStringValue fromString(java.lang.String stringValue)
Factory method to create aJSONStringValueand initialize it with given string.- Parameters:
stringValue- The string value used for initializing this instance.- Returns:
- Newly created
JSONStringValueornullif argument isnull.
-
isString
public boolean isString()
Description copied from class:JSONValueGet a boolean indicating whether this instance represents a JSON string value or not.
-
getValue
public java.lang.String getValue()
Get the underlying string.- Returns:
- String value.
-
-