|
FantasySportsModule 0.0.2-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.fanfoot.scoring.Events
A collection of Events that have happened in a real game that may affect the fantasy game.
Event
Constructor Summary | |
Events()
Creates a new instance of Events |
|
Events(java.lang.String strUID)
Creates a new instance of Events |
Method Summary | |
void |
add(Event evt)
Add the supplied event to the Events list. |
void |
addAll(Events evts)
Add all the supplied events to this Events collection. |
void |
addAll(Events evts,
EventParserConfiguration conf)
Add all the supplied events to this Events collection. |
protected boolean |
arePartsEqual(java.lang.String partValue1,
java.lang.String partValue2)
Test to see if the two supplied part values are equal |
boolean |
contains(Event evt,
EventParserConfiguration conf)
Checks to see if this events collection contains the supplied event by checking against the duplicateDetection config in the configuration file. |
Event |
getEvent(int idx)
Get the event at the given index |
java.util.List |
getEvents()
Get the collection of events |
java.util.ArrayList |
getEventsByType(java.lang.String strType)
Get all events in the collection of the indicated type. |
java.lang.String |
getSrcData()
Getter for property srcData. |
java.util.Enumeration |
getTypes()
Get the names of all event types present |
java.lang.String |
getUID()
Getter for the unique identifier for this groups of events |
java.util.Iterator |
iterator()
Get an iterator over all the events. |
void |
setSrcData(java.lang.String srcData)
Setter for property srcData. |
void |
setUID(java.lang.String uid)
Setter for the unique identifier for this groups of events |
int |
size()
Get the number of events in this collection. |
org.w3c.dom.Document |
toXMLDoc()
Return an XML DOM representation of this event |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Events()
public Events(java.lang.String strUID)
strUID
- a unique identifier for this set of events, must be
application uniqueMethod Detail |
public java.util.List getEvents()
public java.util.Iterator iterator()
public Event getEvent(int idx)
idx
- the index number of the event required
public void add(Event evt)
evt
- The event to addpublic int size()
public void addAll(Events evts)
evts
- the events to addpublic void addAll(Events evts, EventParserConfiguration conf)
evts
- the events to addconf
- the vonfiguration for these eventspublic boolean contains(Event evt, EventParserConfiguration conf)
evt
- the event to check forconf
- the event parser configuration
protected boolean arePartsEqual(java.lang.String partValue1, java.lang.String partValue2)
partValue1
- the first part valuepartValue2
- the second part value
public java.util.Enumeration getTypes()
public java.util.ArrayList getEventsByType(java.lang.String strType)
strType
- the type of event requried
public java.lang.String getUID()
public void setUID(java.lang.String uid)
uid
- New value of property UID.public java.lang.String getSrcData()
public void setSrcData(java.lang.String srcData)
srcData
- New value of property srcData.public org.w3c.dom.Document toXMLDoc() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
- if there is a problem with
the XML parser
|
FantasySportsModule 0.0.2-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |