no.uio.edd.model.geo.map
Class GeoEvent

java.lang.Object
  extended by no.uio.edd.model.geo.map.GeoEvent

public class GeoEvent
extends java.lang.Object

An event connected to a geographical place The myId is the same as the RDF url for the node it was based on.

Author:
oeide

Constructor Summary
GeoEvent(java.lang.String id)
           
GeoEvent(java.lang.String id, GeoPlace atPlace)
           
 
Method Summary
 GeoPerson addPersonAsParticipant(GeoPerson gp)
          Adds a participant to this event.
 java.lang.String getDateEnd()
           
 java.lang.String getDateStart()
           
 java.lang.String getId()
           
 java.lang.String getMyPreferredName()
           
 GeoPlace getTakesPartAtPlace()
           
 java.lang.String getType()
           
 void setDateEnd(java.lang.String dateEnd)
           
 void setDateStart(java.lang.String dateStart)
           
 void setMyPreferredName(java.lang.String myPreferredName)
           
 void setTakesPartAtPlace(GeoPlace takesPartAtPlace)
           
 void setType(java.lang.String type)
           
static GeoEvent[] toGeoEventArr(ExtendableObjectList objList)
          Convert an ExtendableObjectList containing GeoEvent objects to a GeoEvent array, removing null elements.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoEvent

public GeoEvent(java.lang.String id,
                GeoPlace atPlace)

GeoEvent

public GeoEvent(java.lang.String id)
Method Detail

getDateStart

public java.lang.String getDateStart()
Returns:
the dateStart

setDateStart

public void setDateStart(java.lang.String dateStart)
Parameters:
dateStart - the dateStart to set

getDateEnd

public java.lang.String getDateEnd()
Returns:
the dateEnd

setDateEnd

public void setDateEnd(java.lang.String dateEnd)
Parameters:
dateEnd - the dateEnd to set

getId

public java.lang.String getId()
Returns:
the id

getTakesPartAtPlace

public GeoPlace getTakesPartAtPlace()
Returns:
the takesPartAtPlace

setTakesPartAtPlace

public void setTakesPartAtPlace(GeoPlace takesPartAtPlace)
Parameters:
takesPartAtPlace - the takesPartAtPlace to set

getMyPreferredName

public java.lang.String getMyPreferredName()
Returns:
the myPreferredName

setMyPreferredName

public void setMyPreferredName(java.lang.String myPreferredName)
Parameters:
myPreferredName - the myPreferredName to set

toGeoEventArr

public static GeoEvent[] toGeoEventArr(ExtendableObjectList objList)
Convert an ExtendableObjectList containing GeoEvent objects to a GeoEvent array, removing null elements.

Parameters:
objList - The object list.
Returns:
The array.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addPersonAsParticipant

public GeoPerson addPersonAsParticipant(GeoPerson gp)
Adds a participant to this event.

Parameters:
gp - The participant object.
Returns:
The participant object.

getType

public java.lang.String getType()
Returns:
the type

setType

public void setType(java.lang.String type)
Parameters:
type - the type to set