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