Package com.thingworx.types.primitives
Class JSONPrimitive
- java.lang.Object
-
- com.thingworx.types.primitives.JSONPrimitive
-
- All Implemented Interfaces:
IPrimitiveType<JSONPrimitive,org.json.JSONObject>
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
,java.util.Comparator<JSONPrimitive>
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class JSONPrimitive extends java.lang.Object implements IPrimitiveType<JSONPrimitive,org.json.JSONObject>, java.lang.Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONPrimitive()
JSONPrimitive(org.json.JSONObject values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JSONPrimitive
clone()
int
compare(JSONPrimitive v1, JSONPrimitive v2)
int
compare(org.json.JSONObject v1, org.json.JSONObject 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)
-
-
-
Constructor Detail
-
JSONPrimitive
@ThingworxExtensionApiMethod(since={6,6}) public JSONPrimitive()
-
JSONPrimitive
@ThingworxExtensionApiMethod(since={6,6}) public JSONPrimitive(org.json.JSONObject values)
-
-
Method Detail
-
getBaseType
@ThingworxExtensionApiMethod(since={6,6}) public BaseTypes getBaseType()
- Specified by:
getBaseType
in interfaceIPrimitiveType<JSONPrimitive,org.json.JSONObject>
-
getValue
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject getValue()
- Specified by:
getValue
in interfaceIPrimitiveType<JSONPrimitive,org.json.JSONObject>
-
setValue
@ThingworxExtensionApiMethod(since={6,6}) public void setValue(org.json.JSONObject value)
- Specified by:
setValue
in interfaceIPrimitiveType<JSONPrimitive,org.json.JSONObject>
-
compareTo
@ThingworxExtensionApiMethod(since={6,6}) public int compareTo(java.lang.Object value)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
compare
@ThingworxExtensionApiMethod(since={6,6}) public int compare(JSONPrimitive v1, JSONPrimitive v2)
- Specified by:
compare
in interfacejava.util.Comparator<JSONPrimitive>
-
compare
@ThingworxExtensionApiMethod(since={6,6}) public int compare(org.json.JSONObject v1, org.json.JSONObject v2)
-
convertFromObject
@Deprecated @ThingworxExtensionApiMethod(since={6,6}) public static JSONPrimitive convertFromObject(java.lang.Object data) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
- If an error occurs
-
clone
@ThingworxExtensionApiMethod(since={6,6}) public JSONPrimitive clone()
- Specified by:
clone
in interfaceIPrimitiveType<JSONPrimitive,org.json.JSONObject>
- Overrides:
clone
in classjava.lang.Object
-
getStringValue
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getStringValue()
- Specified by:
getStringValue
in interfaceIPrimitiveType<JSONPrimitive,org.json.JSONObject>
-
getSerializedValue
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Object getSerializedValue()
- Specified by:
getSerializedValue
in interfaceIPrimitiveType<JSONPrimitive,org.json.JSONObject>
-
-