|
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.Event
An event in a live game that may have an impact on the fantasy game
Constructor Summary | |
Event(java.lang.String strType)
Creates a new instance of Event of the type indicated |
Method Summary | |
void |
appendXMLTo(org.w3c.dom.Document doc)
Append this event as a DOM node to the supplied XMl Docmuent. |
java.lang.String |
getPart(java.lang.String strPart)
Get the part of the event named. |
java.util.Enumeration |
getPartNames()
Get all part names for this event. |
java.util.Hashtable |
getParts()
Get all the parts for this event. |
protected org.w3c.dom.Element |
getSourceElement(org.w3c.dom.Document doc)
Get the source XML ELement |
java.lang.String |
getSrc()
Getter for property src. |
java.lang.String |
getType()
Getter for property type. |
protected org.w3c.dom.Element |
getTypeElement(org.w3c.dom.Document doc)
Get the type XML ELement |
java.lang.String |
getUID()
Getter for property UID. |
protected org.w3c.dom.Element |
getUIDElement(org.w3c.dom.Document doc)
Get the UID XML ELement |
void |
putPart(java.lang.String strName,
java.lang.String strValue)
Add the named part and value to the collection of parts. |
void |
setSrc(java.lang.String src)
Setter for property src. |
void |
setType(java.lang.String type)
Setter for property type. |
void |
setUID(java.lang.String uid)
Setter for property UID. |
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 Event(java.lang.String strType)
strType
- the type of this event this event belongs to.
From this a unique event identifier will be created.Method Detail |
public java.lang.String getSrc()
public void setSrc(java.lang.String src)
src
- New value of property src.public java.lang.String getType()
public void setType(java.lang.String type)
type
- New value of property type.public java.lang.String getPart(java.lang.String strPart)
strPart
- name of the part required
public void putPart(java.lang.String strName, java.lang.String strValue)
strName
- name of the part, nulls are converted to an
empty stringstrValue
- value of the partpublic java.util.Hashtable getParts()
public java.util.Enumeration getPartNames()
public org.w3c.dom.Document toXMLDoc() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
- if there is a problem with
the XML Parserpublic void appendXMLTo(org.w3c.dom.Document doc)
doc
- the document to append toprotected org.w3c.dom.Element getUIDElement(org.w3c.dom.Document doc)
doc
- the document this element will be a part of
protected org.w3c.dom.Element getTypeElement(org.w3c.dom.Document doc)
doc
- the document this element will be a part of
protected org.w3c.dom.Element getSourceElement(org.w3c.dom.Document doc)
doc
- the document this element will be a part of
public java.lang.String getUID()
public void setUID(java.lang.String uid)
uid
- New value of property UID.
|
FantasySportsModule 0.0.2-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |