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
The default implementation of the
Event interface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringHow the event occurred.protected StringA description of what happened.protected DateWhen the event occurred.protected StringWhere the event occurred.protected StringWho triggered the event.protected StringThe reason why the event occurred.Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypesFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.properties.Event
HOW_PROPERTY, NAME, WHAT_PROPERTY, WHEN_PROPERTY, WHERE_PROPERTY, WHO_PROPERTY, WHY_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetHow()Returns how the event occurred.getWhat()Returns a description of what happened.getWhen()Returns when the event occurred.getWhere()Returns where the event occurred.getWho()Returns who triggered the event.getWhy()Returns the reason why the event occurred.inthashCode()voidSets how the event occurred.voidSets the description of what happened.voidSets when the event occurred.voidSets where the event occurred.voidSets who triggered the event.voidSets the reason why the event occurred.Methods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypesMethods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Field Details
-
what
A description of what happened. -
when
When the event occurred. -
who
Who triggered the event. -
where
Where the event occurred. -
why
The reason why the event occurred. -
how
How the event occurred.
-
-
Constructor Details
-
EventImpl
public EventImpl()Default constructor.
-
-
Method Details
-
getWhat
Returns a description of what happened. -
setWhat
Sets the description of what happened. -
getWhen
Returns when the event occurred. -
setWhen
Sets when the event occurred. -
getWho
Returns who triggered the event. -
setWho
Sets who triggered the event. -
getWhere
Returns where the event occurred. -
setWhere
Sets where the event occurred. -
getWhy
Returns the reason why the event occurred. -
setWhy
Sets the reason why the event occurred. -
getHow
Returns how the event occurred. -
setHow
Sets how the event occurred. -
compareTo
- Specified by:
compareToin interfaceComparable<Event>
-
hashCode
public int hashCode() -
equals
-