net.logAnalyzer.gui.messages.filters
Class StartWithFilter

java.lang.Object
  extended bynet.logAnalyzer.gui.messages.filters.CompareFilter
      extended bynet.logAnalyzer.gui.messages.filters.StartWithFilter
All Implemented Interfaces:
LAMessagesFilter

public final class StartWithFilter
extends CompareFilter

This class implements a string filter checking if the messageLabel value starts with the specified string.

Version:
0.1
Author:
Karim REFEYTON

Field Summary
 
Fields inherited from class net.logAnalyzer.gui.messages.filters.CompareFilter
CONVERTER_NOT_FOUND
 
Constructor Summary
StartWithFilter(LAConverter converter, java.lang.String value)
          Constructs a new filter.
 
Method Summary
 boolean accept(LAMessage message)
          Returns true if the messageLabel value starts with the accepted value.
 java.lang.String toString()
          Returns a string representation of the filter.
 
Methods inherited from class net.logAnalyzer.gui.messages.filters.CompareFilter
getConverter, getConverterIndex, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartWithFilter

public StartWithFilter(LAConverter converter,
                       java.lang.String value)
Constructs a new filter.

Parameters:
converter - Converter to compare.
value - Value used to accept or not the messageLabel (depending of accept(LAMessage) implementation).
Method Detail

accept

public boolean accept(LAMessage message)
Returns true if the messageLabel value starts with the accepted value.

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 CompareFilter
Returns:
String representation of the filter.


Copyright © 2006 null. All Rights Reserved.