com.cumulocity.model.event
Class Event
java.lang.Object
org.svenson.AbstractDynamicProperties
com.cumulocity.model.JSONBase
com.cumulocity.model.Document<GId>
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()
|
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 org.svenson.AbstractDynamicProperties |
getProperty, propertyNames, setProperty |
Event
public Event()
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.