com.cumulocity.rest.representation.event
Class EventRepresentation

java.lang.Object
  extended by com.cumulocity.rest.representation.BaseResourceRepresentation
      extended by com.cumulocity.rest.representation.AbstractExtensibleRepresentation
          extended by com.cumulocity.rest.representation.event.EventRepresentation
All Implemented Interfaces:
ResourceRepresentation, org.svenson.DynamicProperties
Direct Known Subclasses:
AlarmRepresentation, AuditRecordRepresentation

public class EventRepresentation
extends AbstractExtensibleRepresentation

A Java Representation for the Media Type EventMediaType.EVENT.


Constructor Summary
EventRepresentation()
           
 
Method Summary
 Date getCreationTime()
           
 GId getId()
           
 ManagedObjectRepresentation getSource()
           
 String getText()
           
 Date getTime()
           
 String getType()
           
 void setCreationTime(Date creationTime)
           
 void setId(GId id)
           
 void setSource(ManagedObjectRepresentation managedObject)
           
 void setText(String text)
           
 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

EventRepresentation

public EventRepresentation()
Method Detail

getId

@JSONConverter(type=IDTypeConverter.class)
@JSONProperty(ignoreIfNull=true)
public GId getId()

setId

public void setId(GId id)

getType

@JSONProperty(ignoreIfNull=true)
public String getType()

setType

public void setType(String type)

getTime

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

setTime

public void setTime(Date time)

getText

@JSONProperty(value="text",
              ignoreIfNull=true)
public String getText()

setText

public void setText(String text)

getSource

@JSONProperty(value="source",
              ignoreIfNull=true)
public ManagedObjectRepresentation getSource()

setSource

public void setSource(ManagedObjectRepresentation managedObject)

getCreationTime

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

setCreationTime

public void setCreationTime(Date creationTime)


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