Clover coverage report -
Coverage timestamp: Do Okt 21 2004 12:21:23 CEST
file stats: LOC: 73   Methods: 6
NCLOC: 32   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ConfigurationChangedEventImpl.java - 90% 83,3% 87,5%
coverage coverage
 1    package org.jconfig.event;
 2   
 3    import org.jconfig.Category;
 4   
 5    /**
 6    * The all-in-one implementation of the ConfigurationChangedEvent.
 7    *
 8    * Inside tip: the current implementation allows any PropertyChangedListener
 9    * or CategoryChangeListener to cast the respective Events to a
 10    * ConfigurationChangedEvent.
 11    *
 12    * @since 2.2
 13    * @author Andreas Mecky <andreas.mecky@xcom.de>
 14    * @author Terry Dye <terry.dye@xcom.de>
 15    */
 16    public class ConfigurationChangedEventImpl
 17    implements ConfigurationChangedEvent {
 18    private String propertyName = null;
 19    private Category category = null;
 20    private int eventType = -1;
 21    private String oldValue = null;
 22    private String newValue = null;
 23   
 24    /**
 25    * @param eventType
 26    * @param oldValue
 27    * @param newValue
 28    */
 29  1248 public ConfigurationChangedEventImpl(int eventType, Category category, String propertyName, String oldValue, String newValue) {
 30  1248 this.eventType = eventType;
 31  1248 this.oldValue = oldValue;
 32  1248 this.newValue = newValue;
 33  1248 this.category = category;
 34  1248 this.propertyName = propertyName;
 35    }
 36   
 37    /* (non-Javadoc)
 38    * @see org.jconfig.event.PropertyChangeEvent#getPropertyName()
 39    */
 40  3 public String getPropertyName() {
 41  3 return propertyName;
 42    }
 43   
 44    /* (non-Javadoc)
 45    * @see org.jconfig.event.PropertyChangedEvent#getEventType()
 46    */
 47  3 public int getEventType() {
 48  3 return eventType;
 49    }
 50   
 51   
 52    /* (non-Javadoc)
 53    * @see org.jconfig.event.PropertyChangedEvent#getNewValue()
 54    */
 55  3 public String getNewValue() {
 56  3 return newValue;
 57    }
 58   
 59    /* (non-Javadoc)
 60    * @see org.jconfig.event.PropertyChangedEvent#getOldValue()
 61    */
 62  3 public String getOldValue() {
 63  3 return oldValue;
 64    }
 65   
 66    /* (non-Javadoc)
 67    * @see org.jconfig.event.CategoryChangedEvent#getCategoryName()
 68    */
 69  0 public Category getCategory() {
 70  0 return category;
 71    }
 72   
 73    }