FantasySportsModule 0.0.2-dev

org.fanfoot.scoring
Class EventPattern

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

public class EventPattern
extends java.lang.Object

A pattern with which to identify events that may affect fantasy scores in a textual commentary or set of statistics.

Author:
rgardler

Constructor Summary
EventPattern(org.w3c.dom.Node node)
          Creates a new instance of Pattern
 
Method Summary
 java.lang.String getCapturingGroup(int index)
          Indexed getter for property capturingGroup.
 java.lang.String getPartName(int index)
          Get the part name for the indicate capturing group
 java.util.regex.Pattern getRegexPattern()
          Getter for property regexPattern.
 java.lang.String getType()
          Getter for property type.
 void setCapturingGroup(int index, java.lang.String capturingGroupName)
          Indexed setter for property capturingGroup.
 void setRegexPattern(java.util.regex.Pattern regexPattern)
          Setter for property regexPattern.
 void setType(java.lang.String type)
          Setter for property type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventPattern

public EventPattern(org.w3c.dom.Node node)
Creates a new instance of Pattern

Parameters:
node - a DOM node taken from a configuration file describing an event pattern
Method Detail

getRegexPattern

public java.util.regex.Pattern getRegexPattern()
Getter for property regexPattern.

Returns:
Value of property regexPattern.

setRegexPattern

public void setRegexPattern(java.util.regex.Pattern regexPattern)
Setter for property regexPattern.

Parameters:
regexPattern - New value of property regexPattern.

getCapturingGroup

public java.lang.String getCapturingGroup(int index)
Indexed getter for property capturingGroup.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getPartName

public java.lang.String getPartName(int index)
Get the part name for the indicate capturing group

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

setCapturingGroup

public void setCapturingGroup(int index,
                              java.lang.String capturingGroupName)
Indexed setter for property capturingGroup.

Parameters:
index - Index of the property.
capturingGroupName - New value of the property at index .

getType

public java.lang.String getType()
Getter for property type.

Returns:
Value of property type.

setType

public void setType(java.lang.String type)
Setter for property type.

Parameters:
type - New value of property type.

FantasySportsModule 0.0.2-dev

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