net.sf.logdistiller
Class Condition

java.lang.Object
  extended by net.sf.logdistiller.Condition
All Implemented Interfaces:
Serializable

public class Condition
extends Object
implements Serializable

One condition for a LogEvent to be selected in a group. It consists of matches on attributes of the LogEvent.

See Also:
Serialized Form

Field Summary
static Condition ACCEPT_ALL
           
 
Constructor Summary
Condition(String tags, Match[] matches)
           
 
Method Summary
 org.jdom.Element dump()
           
 boolean hasTag(String tag)
           
 boolean match(LogEvent le)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCEPT_ALL

public static final Condition ACCEPT_ALL
Constructor Detail

Condition

public Condition(String tags,
                 Match[] matches)
Method Detail

match

public boolean match(LogEvent le)

hasTag

public boolean hasTag(String tag)
Parameters:
tag - tag value looked for
Returns:
true if this condition was flagged with corresponding tag
Since:
1.1

dump

public org.jdom.Element dump()


Copyright © 2004-2009. All Rights Reserved.