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