org.polliwog.filters
Class DateRule
java.lang.Object
org.polliwog.filters.Rule
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
DateRule
public DateRule()
DateRule
public DateRule(org.jdom.Element root)
throws org.jdom.JDOMException
- Throws:
org.jdom.JDOMException
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.