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 Objectclone()org.joda.time.DateTimegetDateTime()ExternalIDRepresentationgetExternalSource()GIdgetId()ManagedObjectRepresentationgetSource()DategetTime()Deprecated.StringgetType()voidsetDateTime(org.joda.time.DateTime time)voidsetExternalSource(ExternalIDRepresentation externalSource)voidsetId(GId id)voidsetSource(ManagedObjectRepresentation source)voidsetTime(Date time)Deprecated.voidsetType(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:
setSourcein interfaceSourceableRepresentation
-
getSource
@JSONProperty(ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()
- Specified by:
getSourcein interfaceSourceableRepresentation
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-