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