org.jwall.web.audit.filter
Class FilterExpressionList

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

public class FilterExpressionList
extends Object
implements FilterExpression

Implements a complex expression which ORs or ANDs multiple single filter expressions into one.

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

Constructor Summary
FilterExpressionList(AuditEventFilter filter)
           
FilterExpressionList(BooleanOperator op, Collection<FilterExpression> exps)
           
FilterExpressionList(BooleanOperator op, List<AuditEventMatch> matches)
           
 
Method Summary
 Collection<FilterExpression> getElements()
           
 FilterExpression getFirst()
           
 BooleanOperator getOperator()
           
 boolean matches(AuditEvent evt)
          Matches the expression against the given event.
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterExpressionList

public FilterExpressionList(BooleanOperator op,
                            Collection<FilterExpression> exps)

FilterExpressionList

public FilterExpressionList(BooleanOperator op,
                            List<AuditEventMatch> matches)

FilterExpressionList

public FilterExpressionList(AuditEventFilter filter)
Method Detail

getOperator

public BooleanOperator getOperator()

matches

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

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

size

public int size()

getElements

public Collection<FilterExpression> getElements()

getFirst

public FilterExpression getFirst()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 jwall.org. All Rights Reserved.