Class MeasurementRepresentation
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.rest.representation.AbstractExtensibleRepresentation
-
- com.cumulocity.rest.representation.measurement.MeasurementRepresentation
-
- All Implemented Interfaces:
ResourceRepresentation
,SourceableRepresentation
,Cloneable
,org.svenson.DynamicProperties
public class MeasurementRepresentation extends AbstractExtensibleRepresentation implements Cloneable, SourceableRepresentation
-
-
Constructor Summary
Constructors Constructor Description MeasurementRepresentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Object
clone()
org.joda.time.DateTime
getDateTime()
ExternalIDRepresentation
getExternalSource()
GId
getId()
ManagedObjectRepresentation
getSource()
Date
getTime()
Deprecated.String
getType()
void
setDateTime(org.joda.time.DateTime time)
void
setExternalSource(ExternalIDRepresentation externalSource)
void
setId(GId id)
void
setSource(ManagedObjectRepresentation source)
void
setTime(Date time)
Deprecated.void
setType(String type)
-
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
-
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
-
-
-
Method Detail
-
setId
@JSONConverter(type=IDTypeConverter.class) public void setId(GId id)
-
getId
@JSONProperty(ignoreIfNull=true) public GId getId()
-
setType
public void setType(String type)
-
getType
@JSONProperty(ignoreIfNull=true) public String getType()
-
setExternalSource
public void setExternalSource(ExternalIDRepresentation externalSource)
-
getExternalSource
@JSONProperty(ignoreIfNull=true) public ExternalIDRepresentation getExternalSource()
-
getTime
@JSONProperty(value="deprecated_Time", ignore=true) @Deprecated public Date getTime()
Deprecated.
-
setTime
@Deprecated public void setTime(Date time)
Deprecated.
-
getDateTime
@JSONProperty(value="time", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getDateTime()
-
setDateTime
public void setDateTime(org.joda.time.DateTime time)
-
setSource
public void setSource(ManagedObjectRepresentation source)
- Specified by:
setSource
in interfaceSourceableRepresentation
-
getSource
@JSONProperty(ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()
- Specified by:
getSource
in interfaceSourceableRepresentation
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-