net.logAnalyzer.gui.messages.filters
Class CompareFilter

java.lang.Object
  extended bynet.logAnalyzer.gui.messages.filters.CompareFilter
All Implemented Interfaces:
LAMessagesFilter
Direct Known Subclasses:
ContainsFilter, EqualFilter, GreaterFilter, LowerFilter, StartWithFilter, YesFilter

public abstract class CompareFilter
extends java.lang.Object
implements LAMessagesFilter

This class implements a filter used to compare the value of messageLabel converter to specified value.

Version:
0.1
Author:
Karim REFEYTON

Field Summary
protected static int CONVERTER_NOT_FOUND
          Column not found value of getConverterIndex(LAMessage).
 
Constructor Summary
CompareFilter(LAConverter converter, java.lang.Comparable value)
          Constructs a new filter.
 
Method Summary
 LAConverter getConverter()
          Returns the converter to compare.
protected  int getConverterIndex(LAMessage message)
          Returns the converter index to compare.
 java.lang.Comparable getValue()
          Returns the value.
abstract  java.lang.String toString()
          Returns a string representation of the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.logAnalyzer.gui.messages.filters.LAMessagesFilter
accept
 

Field Detail

CONVERTER_NOT_FOUND

protected static final int CONVERTER_NOT_FOUND
Column not found value of getConverterIndex(LAMessage).

See Also:
Constant Field Values
Constructor Detail

CompareFilter

public CompareFilter(LAConverter converter,
                     java.lang.Comparable value)
Constructs a new filter.

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

getConverter

public final LAConverter getConverter()
Returns the converter to compare.

Returns:
converter.

getValue

public final java.lang.Comparable getValue()
Returns the value.

Returns:
value.

getConverterIndex

protected final int getConverterIndex(LAMessage message)
Returns the converter index to compare.

Parameters:
message - Message to compare.
Returns:
Index of the converter; CONVERTER_NOT_FOUNDif not found.

toString

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

Returns:
String representation of the filter.


Copyright © 2006 null. All Rights Reserved.