Interface Event
-
- All Superinterfaces:
Comparable<Event>,Element,ModelElement,Property,PropertyElement,SchemaMixedElement,Serializable
- All Known Implementing Classes:
EventImpl
@TypeMetadata(name="Event", description="This type provides information regarding an event using the Five Ws (checklist) https://en.wikipedia.org/wiki/Five_Ws", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface Event extends Property, Comparable<Event>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringHOW_PROPERTYstatic StringNAMEstatic StringWHAT_PROPERTYstatic StringWHEN_PROPERTYstatic StringWHERE_PROPERTYstatic StringWHO_PROPERTYstatic StringWHY_PROPERTY-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetHow()StringgetWhat()DategetWhen()StringgetWhere()StringgetWho()StringgetWhy()voidsetHow(String how)voidsetWhat(String what)voidsetWhen(Date when)voidsetWhere(String where)voidsetWho(String who)voidsetWhy(String why)-
Methods inherited from interface java.lang.Comparable
compareTo
-
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
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
WHAT_PROPERTY
static final String WHAT_PROPERTY
- See Also:
- Constant Field Values
-
WHEN_PROPERTY
static final String WHEN_PROPERTY
- See Also:
- Constant Field Values
-
WHO_PROPERTY
static final String WHO_PROPERTY
- See Also:
- Constant Field Values
-
WHERE_PROPERTY
static final String WHERE_PROPERTY
- See Also:
- Constant Field Values
-
WHY_PROPERTY
static final String WHY_PROPERTY
- See Also:
- Constant Field Values
-
HOW_PROPERTY
static final String HOW_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWhat
@ISProperty(name="what", description="WHAT happened.", readonly=true, mandatory=true, nullable=false) String getWhat()
-
setWhat
void setWhat(String what)
-
getWhen
@ISProperty(name="when", description="WHEN the event occured. It is represented in the format yyyy-MM-dd HH:mm:ss.SSS Z.", readonly=true, mandatory=true, nullable=false) Date getWhen()
-
setWhen
void setWhen(Date when)
-
getWho
@ISProperty(name="who", description="WHO triggered the event.", readonly=true, mandatory=false, nullable=false) String getWho()
-
setWho
void setWho(String who)
-
getWhere
@ISProperty(name="where", description="The location (can be virtual) WHERE the event occurred.", readonly=true, mandatory=false, nullable=false) String getWhere()
-
setWhere
void setWhere(String where)
-
getWhy
@ISProperty(name="why", description="The reason WHY the event occurred.", readonly=true, mandatory=false, nullable=false) String getWhy()
-
setWhy
void setWhy(String why)
-
getHow
@ISProperty(name="how", description="How the event occurred.", readonly=true, mandatory=false, nullable=false) String getHow()
-
setHow
void setHow(String how)
-
-