com.cumulocity.model.event
Class Event

java.lang.Object
  extended by org.svenson.AbstractDynamicProperties
      extended by com.cumulocity.model.JSONBase
          extended by com.cumulocity.model.Document<GId>
              extended by com.cumulocity.model.event.Event
All Implemented Interfaces:
org.svenson.DynamicProperties
Direct Known Subclasses:
Alarm, AuditRecord

public class Event
extends Document<GId>


Constructor Summary
Event()
           
 
Method Summary
 boolean equals(Object obj)
           
 Date getCreationTime()
           
 ID getSource()
           
 String getText()
           
 Date getTime()
           
 String getType()
           
 int hashCode()
           
 void setCreationTime(Date creationTime)
           
 void setSource(ID source)
           
 void setText(String text)
           
 void setTime(Date time)
           
 void setType(String type)
           
 
Methods inherited from class com.cumulocity.model.Document
get, get, getFragment, getId, getInternalId, getRevision, set, set, set, setId, setInternalId, setRevision, toString
 
Methods inherited from class com.cumulocity.model.JSONBase
fromJSON, getJSONGenerator, getJSONParser, toJSON
 
Methods inherited from class org.svenson.AbstractDynamicProperties
getProperty, propertyNames, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Method Detail

setType

public void setType(String type)

getType

@JSONProperty(value="type",
              ignoreIfNull=true)
public String getType()

setTime

public void setTime(Date time)

getTime

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

getCreationTime

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

setCreationTime

public void setCreationTime(Date creationTime)

setText

public void setText(String text)

getText

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

setSource

public void setSource(ID source)

getSource

@JSONProperty(value="source",
              ignoreIfNull=true)
@JSONConverter(type=IDTypeConverter.class)
public ID getSource()

hashCode

public int hashCode()
Overrides:
hashCode in class Document<GId>

equals

public boolean equals(Object obj)
Overrides:
equals in class Document<GId>


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