FantasySportsModule 0.0.2-dev

org.fanfoot.scoring
Class ScoringConfiguration

java.lang.Object
  |
  +--org.fanfoot.scoring.ScoringConfiguration

public class ScoringConfiguration
extends java.lang.Object

A score configuration manages how scores are calculated from events. This class is simply a wrapper for an XSL document that is used to transfore the XML representation of a set of Events into another XML document representing the scores generated from those events.

Author:
rgardler

Constructor Summary
ScoringConfiguration(java.lang.String strURL)
          Creates a new instance of ScoreConfiguration
 
Method Summary
 org.w3c.dom.Document getXSL()
          Get XSL Document that is used to transform Events DOM documents into a score DOM document.
 java.lang.String getXSLURL()
          Getter for property xSLURL.
 void setXSLURL(java.lang.String xSLURL)
          Setter for property xSLURL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoringConfiguration

public ScoringConfiguration(java.lang.String strURL)
Creates a new instance of ScoreConfiguration

Parameters:
strURL - the url of the XSL stylesheet to generate scores from Events
Method Detail

getXSLURL

public java.lang.String getXSLURL()
Getter for property xSLURL.

Returns:
Value of property xSLURL.

setXSLURL

public void setXSLURL(java.lang.String xSLURL)
Setter for property xSLURL.

Parameters:
xSLURL - New value of property xSLURL.

getXSL

public org.w3c.dom.Document getXSL()
                            throws ScoringConfigurationException
Get XSL Document that is used to transform Events DOM documents into a score DOM document.

Returns:
scores as a dom Document
Throws:
ScoringConfigurationException - if unable to load the XSL file

FantasySportsModule 0.0.2-dev

Copyright © 2003 We know What you Want.net. All Rights Reserved.