org.polliwog.filters
Class DateRule

java.lang.Object
  extended by org.polliwog.filters.Rule
      extended by org.polliwog.filters.DateRule
All Implemented Interfaces:
com.gentlyweb.xml.JDOMXmlOutputter, java.lang.Comparable

public class DateRule
extends Rule
implements com.gentlyweb.xml.JDOMXmlOutputter, java.lang.Comparable


Nested Class Summary
 class DateRule.XMLConstants
           
 
Field Summary
static java.lang.String DEFAULT_FORMAT
           
static java.lang.String MONTH_FORMAT
           
 
Fields inherited from class org.polliwog.filters.Rule
ACCEPT, ACCEPT_NAME, DATE, IP_ADDR, JOSQL, REJECT, REJECT_NAME, URL
 
Constructor Summary
DateRule()
           
DateRule(org.jdom.Element root)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 org.jdom.Element getAsJDOMElement()
           
 java.lang.String getFormat()
           
 boolean match(Hit h)
           
 boolean match(Visit v)
           
 void setAfter(java.util.Date d)
           
 void setBefore(java.util.Date d)
           
 void setCurrentWeek()
           
 void setMonth(java.lang.String mon)
           
 void setToday()
           
 java.lang.String toString()
           
 
Methods inherited from class org.polliwog.filters.Rule
accept, accept, getRule, isAutoGenerated, setAction, setAutoGenerated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FORMAT

public static final java.lang.String DEFAULT_FORMAT
See Also:
Constant Field Values

MONTH_FORMAT

public static final java.lang.String MONTH_FORMAT
See Also:
Constant Field Values
Constructor Detail

DateRule

public DateRule()

DateRule

public DateRule(org.jdom.Element root)
         throws org.jdom.JDOMException
Throws:
org.jdom.JDOMException
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

setToday

public void setToday()

setCurrentWeek

public void setCurrentWeek()

setMonth

public void setMonth(java.lang.String mon)
              throws org.jdom.JDOMException
Throws:
org.jdom.JDOMException

setBefore

public void setBefore(java.util.Date d)

setAfter

public void setAfter(java.util.Date d)

toString

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

getFormat

public java.lang.String getFormat()

match

public boolean match(Visit v)
              throws WeblogException
Specified by:
match in class Rule
Throws:
WeblogException

match

public boolean match(Hit h)
Specified by:
match in class Rule

getAsJDOMElement

public org.jdom.Element getAsJDOMElement()
Specified by:
getAsJDOMElement in interface com.gentlyweb.xml.JDOMXmlOutputter
Overrides:
getAsJDOMElement in class Rule


  Copyright © 2007 Gary Bentley. All Rights Reserved.