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