WPI GDC CMS 0.0.1

org.wpi.gdc.cms.main
Class Event

java.lang.Object
  |
  +--org.wpi.gdc.cms.main.Event

public class Event
extends java.lang.Object

An event.

Version:
1.3
Author:
dmpotter

Field Summary
static int FIELD_END
          The event end field.
static int FIELD_ID
          The event ID field.
static int FIELD_LOCATION
          The event web URL field.
static int FIELD_NAME
          The event name field.
static int FIELD_PAIRS
          The event name/value pairs field.
static int FIELD_SHORT_NAME
          The event shortName field.
static int FIELD_START
          The event start field.
static int FIELD_URL
          The event web URL field.
 
Constructor Summary
Event(int id, java.lang.String name, java.lang.String shortName, java.lang.String location, java.lang.String url, java.util.Hashtable pairs, java.util.Vector items)
          Creates a new Event based on the passed values.
 
Method Summary
 java.util.Calendar getEndDate()
          returns the end date for event (marked by end date for last day of event).
 int getID()
           
 java.util.Vector getItems()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 java.util.Hashtable getPairs()
           
 java.lang.String getShortName()
           
 java.util.Calendar getStartDate()
          returns the start date for event (marked by start date for first day of event).
 java.lang.String getURL()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIELD_ID

public static final int FIELD_ID
The event ID field.
See Also:
getID()

FIELD_NAME

public static final int FIELD_NAME
The event name field.
See Also:
getName()

FIELD_SHORT_NAME

public static final int FIELD_SHORT_NAME
The event shortName field. Most commonly used for the event's URL.
See Also:
getShortName()

FIELD_LOCATION

public static final int FIELD_LOCATION
The event web URL field.
See Also:
getURL()

FIELD_URL

public static final int FIELD_URL
The event web URL field.
See Also:
getURL()

FIELD_START

public static final int FIELD_START
The event start field.
See Also:
getStartDate()

FIELD_END

public static final int FIELD_END
The event end field.
See Also:
getEndDate()

FIELD_PAIRS

public static final int FIELD_PAIRS
The event name/value pairs field.
See Also:
getPairs()
Constructor Detail

Event

public Event(int id,
             java.lang.String name,
             java.lang.String shortName,
             java.lang.String location,
             java.lang.String url,
             java.util.Hashtable pairs,
             java.util.Vector items)
Creates a new Event based on the passed values.
Parameters:
id - the ID of the event; set to a negative number for a event to be inserted into the DB layer.
name - the name of the event.
location - the location of the event.
url - the address of the website for the event.
pairs - any additional information about the event other than that above.
items -  
Method Detail

getID

public int getID()

getName

public java.lang.String getName()

getShortName

public java.lang.String getShortName()

getLocation

public java.lang.String getLocation()

getURL

public java.lang.String getURL()

getStartDate

public java.util.Calendar getStartDate()
returns the start date for event (marked by start date for first day of event).

Note: will return null if there are no items for this event


getEndDate

public java.util.Calendar getEndDate()
returns the end date for event (marked by end date for last day of event).

Note: will return null if there are no items for this event


getPairs

public java.util.Hashtable getPairs()

getItems

public java.util.Vector getItems()

toString

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

WPI GDC CMS 0.0.1

Copyright © 2001 WPI Game Development Club. All Rights Reserved.