org.jwall.web.audit.rules
Interface Condition

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractCondition, BeginsWith, ConditionEQ, ConditionGE, ConditionGT, ConditionIN, ConditionLE, ConditionLT, ConditionPM, ConditionRX, ConditionSX, Contains, EndsWith

public interface Condition
extends Serializable

This is the basic interface which needs to be implemented by all rule conditions.

Author:
Christian Bockermann <chris@jwall.org>

Field Summary
static String EQ
           
static String GE
           
static String GT
           
static String IN
           
static String LE
           
static String LT
           
static String PM
           
static String RX
           
static String SX
           
 
Method Summary
 String getOperator()
          This returns a textual representation of the operator of this condition.
 String getValue()
          This method returns the value used by this condition to match the value of the variable against.
 String getVariable()
          Returns the variable on which this condition acts.
 boolean matches(AuditEvent evt)
          This method executes the condition against the given event.
 boolean matches(String pattern, String input)
           
 void setVariable(String variable)
          Sets the variable on which this condition needs to match.
 

Field Detail

EQ

static final String EQ

LT

static final String LT

LE

static final String LE

GT

static final String GT

GE

static final String GE

PM

static final String PM

RX

static final String RX

SX

static final String SX

IN

static final String IN
Method Detail

getVariable

String getVariable()
Returns the variable on which this condition acts.

Returns:

setVariable

void setVariable(String variable)
Sets the variable on which this condition needs to match.

Parameters:
variable -

getValue

String getValue()
This method returns the value used by this condition to match the value of the variable against.

Returns:

getOperator

String getOperator()
This returns a textual representation of the operator of this condition.

Returns:

matches

boolean matches(AuditEvent evt)
This method executes the condition against the given event. This is basically the core-functionality of this instance.

Parameters:
evt -
Returns:

matches

boolean matches(String pattern,
                String input)
Parameters:
pattern -
input -
Returns:


Copyright © 2012 jwall.org. All Rights Reserved.