Class EventImpl
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
-
- org.gcube.informationsystem.model.impl.properties.PropertyImpl
-
- org.gcube.informationsystem.model.impl.properties.EventImpl
-
- All Implemented Interfaces:
Serializable,Comparable<Event>,Element,PropertyElement,SchemaMixedElement,ModelElement,Event,Property
public class EventImpl extends PropertyImpl implements Event
The default implementation of theEventinterface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringhowHow the event occurred.protected StringwhatA description of what happened.protected DatewhenWhen the event occurred.protected StringwhereWhere the event occurred.protected StringwhoWho triggered the event.protected StringwhyThe reason why the event occurred.-
Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypes
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Event
HOW_PROPERTY, NAME, WHAT_PROPERTY, WHEN_PROPERTY, WHERE_PROPERTY, WHO_PROPERTY, WHY_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description EventImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Event o)booleanequals(Object obj)StringgetHow()Returns how the event occurred.StringgetWhat()Returns a description of what happened.DategetWhen()Returns when the event occurred.StringgetWhere()Returns where the event occurred.StringgetWho()Returns who triggered the event.StringgetWhy()Returns the reason why the event occurred.inthashCode()voidsetHow(String how)Sets how the event occurred.voidsetWhat(String what)Sets the description of what happened.voidsetWhen(Date when)Sets when the event occurred.voidsetWhere(String where)Sets where the event occurred.voidsetWho(String who)Sets who triggered the event.voidsetWhy(String why)Sets the reason why the event occurred.-
Methods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
-
-
-
Field Detail
-
what
protected String what
A description of what happened.
-
when
protected Date when
When the event occurred.
-
who
protected String who
Who triggered the event.
-
where
protected String where
Where the event occurred.
-
why
protected String why
The reason why the event occurred.
-
how
protected String how
How the event occurred.
-
-
Method Detail
-
getWhat
public String getWhat()
Returns a description of what happened.
-
setWhat
public void setWhat(String what)
Sets the description of what happened.
-
getWhen
public Date getWhen()
Returns when the event occurred.
-
setWhen
public void setWhen(Date when)
Sets when the event occurred.
-
getWho
public String getWho()
Returns who triggered the event.
-
setWho
public void setWho(String who)
Sets who triggered the event.
-
getWhere
public String getWhere()
Returns where the event occurred.
-
setWhere
public void setWhere(String where)
Sets where the event occurred.
-
getWhy
public String getWhy()
Returns the reason why the event occurred.
-
setWhy
public void setWhy(String why)
Sets the reason why the event occurred.
-
getHow
public String getHow()
Returns how the event occurred.
-
setHow
public void setHow(String how)
Sets how the event occurred.
-
compareTo
public int compareTo(Event o)
- Specified by:
compareToin interfaceComparable<Event>
-
-