Coverage Report - net.admin4j.vo.LoggerVO
 
Classes in this File Line Coverage Branch Coverage Complexity
LoggerVO
86%
20/23
50%
3/6
1.667
 
 1  
 package net.admin4j.vo;
 2  
 
 3  
 import java.io.Serializable;
 4  
 
 5  54
 public class LoggerVO extends BaseVO implements Serializable, Comparable<LoggerVO> 
 6  
 {
 7  
         private static final long serialVersionUID = -8576322840966371121L;
 8  
 
 9  
         private String loggerName;
 10  
         private String level;
 11  
         private String type;
 12  
         
 13  156
         public LoggerVO(String loggerName, String level, String type) {
 14  156
                 this.loggerName = loggerName;
 15  156
                 this.level = level;
 16  156
                 this.type = type;
 17  156
         }
 18  
         
 19  
         public String getLoggerName() {
 20  453
                 return loggerName;
 21  
         }
 22  
         public void setLoggerName(String loggerName) {
 23  6
                 this.loggerName = loggerName;
 24  6
         }
 25  
         public String getLevel() {
 26  51
                 return level;
 27  
         }
 28  
         public void setLevel(String level) {
 29  6
                 this.level = level;
 30  6
         }
 31  
 
 32  
         public String getType() {
 33  141
                 return type;
 34  
         }
 35  
 
 36  
         public void setType(String type) {
 37  6
                 this.type = type;
 38  6
         }
 39  
 
 40  
         public int compareTo(LoggerVO other) {
 41  60
                 if (other == null)
 42  0
                         return -1;
 43  60
                 if (other.getLoggerName() == null)
 44  0
                         return -1;
 45  60
                 if (this.getLoggerName() == null)
 46  0
                         return 1;
 47  60
                 return this.getLoggerName().compareTo(other.getLoggerName());
 48  
         }
 49  
 
 50  
     /* (non-Javadoc)
 51  
      * @see net.admin4j.vo.BaseVO#clone()
 52  
      */
 53  
     @Override
 54  
     public Object clone() throws CloneNotSupportedException {
 55  3
         return new LoggerVO(this.loggerName, this.level, this.type);
 56  
     }
 57  
 }