@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class JSONPrimitive extends java.lang.Object implements IPrimitiveType<JSONPrimitive,org.json.JSONObject>, java.lang.Cloneable
Constructor and Description |
---|
JSONPrimitive() |
JSONPrimitive(org.json.JSONObject values) |
Modifier and Type | Method and Description |
---|---|
JSONPrimitive |
clone() |
int |
compare(org.json.JSONObject v1,
org.json.JSONObject v2) |
int |
compare(JSONPrimitive v1,
JSONPrimitive v2) |
int |
compareTo(java.lang.Object value) |
static JSONPrimitive |
convertFromObject(java.lang.Object data)
Deprecated.
|
BaseTypes |
getBaseType() |
java.lang.Object |
getSerializedValue() |
java.lang.String |
getStringValue() |
org.json.JSONObject |
getValue() |
void |
setValue(org.json.JSONObject value) |
@ThingworxExtensionApiMethod(since={6,6}) public JSONPrimitive()
@ThingworxExtensionApiMethod(since={6,6}) public JSONPrimitive(org.json.JSONObject values)
@ThingworxExtensionApiMethod(since={6,6}) public BaseTypes getBaseType()
getBaseType
in interface IPrimitiveType<JSONPrimitive,org.json.JSONObject>
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject getValue()
getValue
in interface IPrimitiveType<JSONPrimitive,org.json.JSONObject>
@ThingworxExtensionApiMethod(since={6,6}) public void setValue(org.json.JSONObject value)
setValue
in interface IPrimitiveType<JSONPrimitive,org.json.JSONObject>
@ThingworxExtensionApiMethod(since={6,6}) public int compareTo(java.lang.Object value)
compareTo
in interface java.lang.Comparable
@ThingworxExtensionApiMethod(since={6,6}) public int compare(JSONPrimitive v1, JSONPrimitive v2)
compare
in interface java.util.Comparator<JSONPrimitive>
@ThingworxExtensionApiMethod(since={6,6}) public int compare(org.json.JSONObject v1, org.json.JSONObject v2)
@Deprecated @ThingworxExtensionApiMethod(since={6,6}) public static JSONPrimitive convertFromObject(java.lang.Object data) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public JSONPrimitive clone()
clone
in interface IPrimitiveType<JSONPrimitive,org.json.JSONObject>
clone
in class java.lang.Object
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getStringValue()
getStringValue
in interface IPrimitiveType<JSONPrimitive,org.json.JSONObject>
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Object getSerializedValue()
getSerializedValue
in interface IPrimitiveType<JSONPrimitive,org.json.JSONObject>