Home
Content of source file org.apache.log4j.Priority.java.res Press <TAB> to move from one error to the next
package org.apache.log4j;
public 
class Priority
{
   
   transient
   int level
   //QC   Intervals :     (int) org.apache.log4j.Priority.level                        : Interval   0 :  -2147483647 : 2147483647  
   
   ;
   
   transient
   String levelStr
   //QC   Intervals :  (String) org.apache.log4j.Priority.levelStr                     : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   
   ;
   
   transient
   int syslogEquivalent
   //QC   Intervals :     (int) org.apache.log4j.Priority.syslogEquivalent             : Interval   0 :  -2147483647 : 2147483647  
   
   ;
   
   public final static 
   int OFF_INT
   //QC-CWE190 and QCerrorOVF attention overflow on Integer_MAX_VALUE value 2.3611832404782E+21
   //QC-CWE190 and QCerrorOVF attention overflow on OFF_INT value 2.3611832404782E+21
   //QC   Intervals :     (int) org.apache.log4j.Priority.OFF_INT                      : Interval   0 : 2.3611832404782E+21 : 2.3611832404782E+21
   =Integer.MAX_VALUE
   ;
   
   public final static 
   int FATAL_INT
   //QC   Intervals :     (int) org.apache.log4j.Priority.FATAL_INT                    : Interval   0 :        50000 : 50000       
   =50000
   ;
   
   public final static 
   int ERROR_INT
   //QC   Intervals :     (int) org.apache.log4j.Priority.ERROR_INT                    : Interval   0 :        40000 : 40000       
   =40000
   ;
   
   public final static 
   int WARN_INT
   //QC   Intervals :     (int) org.apache.log4j.Priority.WARN_INT                     : Interval   0 :        30000 : 30000       
   =30000
   ;
   
   public final static 
   int INFO_INT
   //QC   Intervals :     (int) org.apache.log4j.Priority.INFO_INT                     : Interval   0 :        20000 : 20000       
   =20000
   ;
   
   public final static 
   int DEBUG_INT
   //QC   Intervals :     (int) org.apache.log4j.Priority.DEBUG_INT                    : Interval   0 :        10000 : 10000       
   =10000
   ;
   
   public final static 
   int ALL_INT
   //QC-CWE190 and QCerrorOVF attention overflow on Integer_MIN_VALUE value 34359738376
   //QC-CWE190 and QCerrorOVF attention overflow on ALL_INT value 34359738376
   //QC   Intervals :     (int) org.apache.log4j.Priority.ALL_INT                      : Interval   0 :  34359738376 : 34359738376 
   =Integer.MIN_VALUE
   ;
   
   final static public 
   Priority FATAL
   //QC   Intervals :(Priority) org.apache.log4j.Priority.FATAL                        : Interval   0 :          new new         
   =new Level(FATAL_INT,"FATAL",0)
   ;
   
   final static public 
   Priority ERROR
   //QC   Intervals :(Priority) org.apache.log4j.Priority.ERROR                        : Interval   0 :          new new         
   =new Level(ERROR_INT,"ERROR",3)
   ;
   
   final static public 
   Priority WARN
   //QC   Intervals :(Priority) org.apache.log4j.Priority.WARN                         : Interval   0 :          new new         
   =new Level(WARN_INT,"WARN",4)
   ;
   
   final static public 
   Priority INFO
   //QC   Intervals :(Priority) org.apache.log4j.Priority.INFO                         : Interval   0 :          new new         
   =new Level(INFO_INT,"INFO",6)
   ;
   
   final static public 
   Priority DEBUG
   //QC   Intervals :(Priority) org.apache.log4j.Priority.DEBUG                        : Interval   0 :          new new         
   =new Level(DEBUG_INT,"DEBUG",7)
   ;
   
   protected 
   Priority
   (
   )
   
   {
      
      level=DEBUG_INT;
      //QC   Intervals :     (int) org.apache.log4j.Priority.Priority.level
              : Interval   0 :        10000 : 10000       
      //assignation
      
      levelStr="DEBUG";
      //QC   Intervals :  (String) org.apache.log4j.Priority.Priority.levelStr
           : Interval   0 :        DEBUG : DEBUG       
      //assignation
      
      syslogEquivalent=7;
      //QC   Intervals :     (int) org.apache.log4j.Priority.Priority.syslogEquivalent
   : Interval   0 :            7 : 7           
      //assignation
   }
   
   protected 
   Priority
   (
      int level
      ,
      String levelStr
      ,
      int syslogEquivalent
   )
   //QC   Intervals :     (int) org.apache.log4j.Priority.Priority.level               : Interval   0 :  -2147483647 : 2147483647  
   //QC   Intervals :  (String) org.apache.log4j.Priority.Priority.levelStr            : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   //QC   Intervals :     (int) org.apache.log4j.Priority.Priority.syslogEquivalent    : Interval   0 :  -2147483647 : 2147483647  
   
   {
      
      this.level=level;
      //QC   Intervals :     (int) org.apache.log4j.Priority.level
                       : Interval   0 :  -2147483647 : 2147483647  
      //assignation
      
      this.levelStr=levelStr;
      //QC   Intervals :  (String) org.apache.log4j.Priority.levelStr
                    : Interval   0 :         null null        
      //QC             :                                                                    Interval   1 :          new new         
      //assignation
      
      this.syslogEquivalent=syslogEquivalent;
      //QC   Intervals :     (int) org.apache.log4j.Priority.syslogEquivalent
            : Interval   0 :  -2147483647 : 2147483647  
      //assignation
   }
   
   public 
   boolean equals
   //QC   Intervals : (boolean) org.apache.log4j.Priority.equals                       : Interval   0 :        false true        
   (
      Object o
   )
   //QC   Intervals :  (Object) org.apache.log4j.Priority.equals.o                     : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   
   {
      
      if (o instanceof Priority )
         //QC   Intervals : (boolean) instanceof                                             : Interval   0 :         true true        
         {
            Priority r=(Priority )o;
            //QC   Intervals :(Priority) org.apache.log4j.Priority.equals.r                     : Interval   0 :         null null        
            //QC             :                                                                    Interval   1 :          new new         
            
            return (this.level==r.level);
            //QC-CWE476 or QCerrorNPE null pointer reference on r (see http://cwe.mitre.org/data/definitions/476.html)
            //QC   Intervals : (boolean) org.apache.log4j.Priority.equals.return                : Interval   0 :         true true        
            //QC             :                                                                    Interval   1 :        false false       
         }
      else 
         //QC   Intervals : (boolean) instanceof                                             : Interval   0 :        false false       
         {
            
            return false;
            //QC   Intervals : (boolean) org.apache.log4j.Priority.equals.return                : Interval   0 :        false false       
         }
      //QC   Intervals : (boolean) instanceof                                             : Interval   0 :        false false       
   }
   
   public final 
   int getSyslogEquivalent
   //QC   Intervals :     (int) org.apache.log4j.Priority.getSyslogEquivalent          : Interval   0 :  -2147483647 : 2147483647  
   (
   )
   
   {
      
      return syslogEquivalent;
      //QC   Intervals :     (int) org.apache.log4j.Priority.getSyslogEquivalent.return   : Interval   0 :  -2147483647 : 2147483647  
   }
   
   public 
   boolean isGreaterOrEqual
   //QC   Intervals : (boolean) org.apache.log4j.Priority.isGreaterOrEqual             : Interval   0 :        false true        
   (
      Priority r
   )
   //QC   Intervals :(Priority) org.apache.log4j.Priority.isGreaterOrEqual.r           : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   
   {
      
      return level>=r.level;
      //QC-CWE476 or QCerrorNPE null pointer reference on r (see http://cwe.mitre.org/data/definitions/476.html)
      //QC   Intervals : (boolean) org.apache.log4j.Priority.isGreaterOrEqual.return      : Interval   0 :         true true        
      //QC             :                                                                    Interval   1 :        false false       
   }
   
   public static 
   Priority[]  getAllPossiblePriorities
   //QC   Intervals :(Priority[]) org.apache.log4j.Priority.getAllPossiblePriorities     : Interval   0 :         null null        
   //QC             :                                                                      Interval   1 :          new new         
   (
   )
   
   {
      
      return new Priority[] {Priority.FATAL,Priority.ERROR,Level.WARN,Priority.INFO,Priority.DEBUG};
      //QC   Intervals :(Priority[]) org.apache.log4j.Priority.getAllPossiblePriorities.return: Interval   0 :          new new         
   }
   
   final public 
   String toString
   //QC   Intervals :  (String) org.apache.log4j.Priority.toString                     : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   (
   )
   
   {
      
      return levelStr;
      //QC   Intervals :  (String) org.apache.log4j.Priority.toString.return              : Interval   0 :         null null        
      //QC             :                                                                    Interval   1 :          new new         
   }
   
   public final 
   int toInt
   //QC   Intervals :     (int) org.apache.log4j.Priority.toInt                        : Interval   0 :  -2147483647 : 2147483647  
   (
   )
   
   {
      
      return level;
      //QC   Intervals :     (int) org.apache.log4j.Priority.toInt.return                 : Interval   0 :  -2147483647 : 2147483647  
   }
   
   public static 
   Priority toPriority
   //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority                   : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   (
      String sArg
   )
   //QC   Intervals :  (String) org.apache.log4j.Priority.toPriority.sArg              : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   
   {
      
      return Level.toLevel(sArg);
      //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority.return            : Interval   0 :         null null        
      //QC             :                                                                    Interval   1 :          new new         
   }
   
   public static 
   Priority toPriority
   //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority                   : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   (
      int val
   )
   //QC   Intervals :     (int) org.apache.log4j.Priority.toPriority.val               : Interval   0 :  -2147483647 : 2147483647  
   
   {
      
      return toPriority(val,Priority.DEBUG);
      //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority.return            : Interval   0 :         null null        
      //QC             :                                                                    Interval   1 :          new new         
   }
   
   public static 
   Priority toPriority
   //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority                   : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   (
      int val
      ,
      Priority defaultPriority
   )
   //QC   Intervals :     (int) org.apache.log4j.Priority.toPriority.val               : Interval   0 :  -2147483647 : 2147483647  
   //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority.defaultPriority   : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   
   {
      
      return Level.toLevel(val,(Level )defaultPriority);
      //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority.return            : Interval   0 :         null null        
      //QC             :                                                                    Interval   1 :          new new         
   }
   
   public static 
   Priority toPriority
   //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority                   : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   (
      String sArg
      ,
      Priority defaultPriority
   )
   //QC   Intervals :  (String) org.apache.log4j.Priority.toPriority.sArg              : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority.defaultPriority   : Interval   0 :         null null        
   //QC             :                                                                    Interval   1 :          new new         
   
   {
      
      return Level.toLevel(sArg,(Level )defaultPriority);
      //QC   Intervals :(Priority) org.apache.log4j.Priority.toPriority.return            : Interval   0 :         null null        
      //QC             :                                                                    Interval   1 :          new new         
   }
   
}