org.jwall.web.audit.filter
Class AuditEventDateMatch

java.lang.Object
  extended by org.jwall.audit.Match
      extended by org.jwall.web.audit.filter.AuditEventMatch
          extended by org.jwall.web.audit.filter.AuditEventDateMatch
All Implemented Interfaces:
Serializable, FilterExpression

public class AuditEventDateMatch
extends AuditEventMatch

This class implements a date match of an event.

Author:
Christian Bockermann <chris@jwall.org>
See Also:
Serialized Form

Field Summary
static SimpleDateFormat FMT
           
 
Fields inherited from class org.jwall.audit.Match
NUMERIC_FIELDS
 
Constructor Summary
AuditEventDateMatch(Operator op, Date date)
           
AuditEventDateMatch(String var, Operator op, Date date)
           
 
Method Summary
 Date getDate()
           
 List<String> getSupportedOperators()
           
 Date getValueObject()
           
 String getVariable()
           
 boolean isValidOp(String op)
           
 boolean matches(AuditEvent evt)
          Matches the expression against the given event.
 Object readResolve()
           
 void setComparator(String compare)
           
 void setDate(Date val)
           
 String toXML()
          Returns an XML representation of this match.
 
Methods inherited from class org.jwall.audit.Match
getOp, getOperator, getValue, setOperator, setValue, setVariable, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FMT

public static SimpleDateFormat FMT
Constructor Detail

AuditEventDateMatch

public AuditEventDateMatch(Operator op,
                           Date date)
                    throws SyntaxException
Throws:
SyntaxException

AuditEventDateMatch

public AuditEventDateMatch(String var,
                           Operator op,
                           Date date)
                    throws SyntaxException
Throws:
SyntaxException
Method Detail

setComparator

public void setComparator(String compare)
                   throws SyntaxException
Throws:
SyntaxException

setDate

public void setDate(Date val)
See Also:
org.jwall.web.audit.filter.AuditEventMatch#addValue(java.lang.String)

getDate

public Date getDate()

getValueObject

public Date getValueObject()
Overrides:
getValueObject in class Match

isValidOp

public boolean isValidOp(String op)

getVariable

public String getVariable()
Overrides:
getVariable in class Match
Returns:
the variable

matches

public boolean matches(AuditEvent evt)
Description copied from interface: FilterExpression
Matches the expression against the given event.

Specified by:
matches in interface FilterExpression
Overrides:
matches in class AuditEventMatch
Returns:
See Also:
AuditEventMatch.matches(org.jwall.web.audit.AuditEvent)

readResolve

public Object readResolve()
Overrides:
readResolve in class AuditEventMatch

getSupportedOperators

public List<String> getSupportedOperators()

toXML

public String toXML()
Description copied from class: AuditEventMatch
Returns an XML representation of this match.

Overrides:
toXML in class AuditEventMatch
Returns:


Copyright © 2012 jwall.org. All Rights Reserved.