public class EventDataset extends Object
| Constructor and Description |
|---|
EventDataset() |
| Modifier and Type | Method and Description |
|---|---|
static es.uvigo.esei.dgss.teama.letta.entities.Event[] |
events() |
static es.uvigo.esei.dgss.teama.letta.entities.Event |
eventToCreate() |
static es.uvigo.esei.dgss.teama.letta.entities.Event |
eventToCreateWithId(int id) |
static es.uvigo.esei.dgss.teama.letta.entities.Event |
eventWithId(int id) |
static Date |
formatDate(String date) |
static es.uvigo.esei.dgss.teama.letta.entities.Event |
validEvent()
Return an event that exists in users.xml
|
public static es.uvigo.esei.dgss.teama.letta.entities.Event[] events()
throws ParseException
ParseException - if start or end dates with wrong formatpublic static Date formatDate(String date)
date - date as string in format yyyy-MM-dd HH:mm:ss (year-month-day
Hours:minutes:seconds), example 2016-01-01 00:00:00public static es.uvigo.esei.dgss.teama.letta.entities.Event validEvent()
throws ParseException
ParseException - if start or end dates with wrong formatpublic static es.uvigo.esei.dgss.teama.letta.entities.Event eventWithId(int id)
throws ParseException
id - id of an eventParseException - if dates are in wrong formatpublic static es.uvigo.esei.dgss.teama.letta.entities.Event eventToCreate()
public static es.uvigo.esei.dgss.teama.letta.entities.Event eventToCreateWithId(int id)
Copyright © 2016. All rights reserved.