Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package org.apache.log4j.varia;
 /*     */ 
 /*     */ import org.apache.log4j.Level;
 /*     */ import org.apache.log4j.Priority;
 /*     */ import org.apache.log4j.spi.Filter;
 /*     */ import org.apache.log4j.spi.LoggingEvent;
 /*     */ 
 /*     */ public class LevelMatchFilter extends Filter
/*     */ {
/*  44 */   boolean acceptOnMatch = true;
/*     */   Level levelToMatch;
/*     */ 
/*     */   public void setLevelToMatch(String level)
/*     */   {
/*  53 */     this. = OptionConverter.toLevel(levelnull);
/*     */   }
/*     */ 
/*     */   public String getLevelToMatch()
/*     */   {
/*  58 */     return this. == null ? null : this..toString();
/*     */   }
/*     */ 
/*     */   public void setAcceptOnMatch(boolean acceptOnMatch)
/*     */   {
/*  63 */     this. = acceptOnMatch;
/*     */   }
/*     */ 
/*     */   public boolean getAcceptOnMatch()
/*     */   {
/*  68 */     return this.;
/*     */   }
/*     */ 
/*     */   public int decide(LoggingEvent event)
/*     */   {
/*  85 */     if (this. == null) {
/*  86 */       return 0;
/*     */     }
/*     */ 
/*  89 */     boolean matchOccured = false;
/*  90 */     if (this..equals(event.getLevel())) {
/*  91 */       matchOccured = true;
/*     */     }
/*     */ 
/*  94 */     if (matchOccured) {
/*  95 */       if (this.) {
/*  96 */         return 1;
/*     */       }
/*  98 */       return -1;
/*     */     }
/* 100 */     return 0;
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.log4j.varia.LevelMatchFilter
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X