com.cumulocity.rest.representation.measurement
Class MeasurementRepresentation

java.lang.Object
  extended by com.cumulocity.rest.representation.BaseResourceRepresentation
      extended by com.cumulocity.rest.representation.AbstractExtensibleRepresentation
          extended by com.cumulocity.rest.representation.measurement.MeasurementRepresentation
All Implemented Interfaces:
ResourceRepresentation, org.svenson.DynamicProperties

public class MeasurementRepresentation
extends AbstractExtensibleRepresentation


Constructor Summary
MeasurementRepresentation()
           
 
Method Summary
 GId getId()
           
 ManagedObjectRepresentation getSource()
           
 Date getTime()
           
 String getType()
           
 void setId(GId id)
           
 void setSource(ManagedObjectRepresentation source)
           
 void setTime(Date time)
           
 void setType(String type)
           
 
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, propertyNames, set, set, set, setAttrs, setProperty
 
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, setSelf, toJSON, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementRepresentation

public MeasurementRepresentation()
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()

setTime

public void setTime(Date time)

getTime

@JSONProperty(value="time",
              ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getTime()

setSource

public void setSource(ManagedObjectRepresentation source)

getSource

@JSONProperty(ignoreIfNull=true)
public ManagedObjectRepresentation getSource()


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.