EMMA Coverage Report (generated Tue Feb 12 22:23:49 ICT 2008)
[all classes][net.sourceforge.hivegui.application]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractPropertyBean.java]

nameclass, %method, %block, %line, %
AbstractPropertyBean.java0%   (0/1)0%   (0/8)0%   (0/55)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractPropertyBean0%   (0/1)0%   (0/8)0%   (0/55)0%   (0/11)
AbstractPropertyBean (): void 0%   (0/1)0%   (0/8)0%   (0/2)
getBooleanProperty (String): boolean 0%   (0/1)0%   (0/6)0%   (0/1)
getDoubleProperty (String): double 0%   (0/1)0%   (0/6)0%   (0/1)
getFloatProperty (String): float 0%   (0/1)0%   (0/6)0%   (0/1)
getIntProperty (String): int 0%   (0/1)0%   (0/6)0%   (0/1)
getLongProperty (String): long 0%   (0/1)0%   (0/6)0%   (0/1)
getProperty (String): Object 0%   (0/1)0%   (0/5)0%   (0/1)
setProperty (String, Object): void 0%   (0/1)0%   (0/12)0%   (0/3)

1//  Copyright 2004-2007 Jean-Francois Poilpret
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14 
15package net.sourceforge.hivegui.application;
16 
17import java.util.HashMap;
18import java.util.Map;
19 
20import org.jdesktop.application.AbstractBean;
21 
22public abstract class AbstractPropertyBean extends AbstractBean
23{
24        @SuppressWarnings("unchecked")
25        protected<T> void        setProperty(String name, T value)
26        {
27                T old = (T) _properties.put(name, value);
28                firePropertyChange(name, old, value);
29        }
30        
31        @SuppressWarnings("unchecked")
32        protected<T> T        getProperty(String name)
33        {
34                return (T) _properties.get(name);
35        }
36        
37        protected boolean        getBooleanProperty(String name)
38        {
39                return (Boolean) getProperty(name);
40        }
41 
42        protected int        getIntProperty(String name)
43        {
44                return (Integer) getProperty(name);
45        }
46 
47        protected long        getLongProperty(String name)
48        {
49                return (Long) getProperty(name);
50        }
51 
52        protected float        getFloatProperty(String name)
53        {
54                return (Float) getProperty(name);
55        }
56 
57        protected double        getDoubleProperty(String name)
58        {
59                return (Double) getProperty(name);
60        }
61 
62        final protected Map<String, Object>                _properties = new HashMap<String, Object>();
63}

[all classes][net.sourceforge.hivegui.application]
EMMA 2.0.5312 (C) Vladimir Roubtsov