net.logAnalyzer.gui.messages.filters
Class OrFilter

java.lang.Object
  extended bynet.logAnalyzer.gui.messages.filters.OperatorFilter
      extended bynet.logAnalyzer.gui.messages.filters.OrFilter
All Implemented Interfaces:
LAMessagesFilter

public final class OrFilter
extends OperatorFilter

This class implements a logical OR filter.

Version:
0.1
Author:
Karim REFEYTON

Constructor Summary
OrFilter(LAMessagesFilter left, LAMessagesFilter right)
          Constructs a new filter.
 
Method Summary
 boolean accept(LAMessage message)
          Returns true if the messageLabel is accepted by the filter.
 java.lang.String toString()
          Returns a string representation of the filter.
 
Methods inherited from class net.logAnalyzer.gui.messages.filters.OperatorFilter
getLeft, getRight, setLeft, setRight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrFilter

public OrFilter(LAMessagesFilter left,
                LAMessagesFilter right)
Constructs a new filter.

Parameters:
left - First filter.
right - Second filter.
Method Detail

accept

public boolean accept(LAMessage message)
Returns true if the messageLabel is accepted by the filter. To be accepted, the messageLabel must be accepted by on of the two filters.

Parameters:
message - Message to check
Returns:
true if the messageLabel is accepted.
See Also:
LAMessagesFilter.accept(net.logAnalyzer.handlers.LAMessage)

toString

public java.lang.String toString()
Returns a string representation of the filter. Used to display filter.

Specified by:
toString in class OperatorFilter
Returns:
String representation of the filter.


Copyright © 2006 null. All Rights Reserved.