| Line | Hits | Source |
|---|---|---|
| 1 | /******************************************************************************* | |
| 2 | * Demetrix process modelling system | |
| 3 | * | |
| 4 | * Copyright (c) 2003, 2004 Dimitri A. Pissarenko | |
| 5 | * | |
| 6 | * This file is part of Demetrix. | |
| 7 | * | |
| 8 | * Demetrix is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2.1 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * Demetrix is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with Demetrix; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | * | |
| 22 | * For further information you may | |
| 23 | * | |
| 24 | * - send an e-mail in Russian, German or English to dimitri.pissarenko@gmx.net | |
| 25 | * - look at http://sourceforge.net/projects/demetrix/ | |
| 26 | * - look at http://demetrix.sourceforge.net/ | |
| 27 | * - look at http://members.inode.at/d.pissarenko/ | |
| 28 | * | |
| 29 | *****************************************************************************/ | |
| 30 | /* | |
| 31 | * Created on 17.01.2004 | |
| 32 | */ | |
| 33 | package net.sourceforge.demetrix.model; | |
| 34 | ||
| 35 | import java.util.Enumeration; | |
| 36 | import java.util.Iterator; | |
| 37 | ||
| 38 | import net.sourceforge.demetrix.properties.DemetrixPropertiesHolder; | |
| 39 | import net.sourceforge.demetrix.properties.DemetrixProperty; | |
| 40 | import net.sourceforge.demetrix.properties.JavaBeanBasedDemetrixPropertiesHolder; | |
| 41 | ||
| 42 | /** | |
| 43 | * @author Dimitri Pissarenko | |
| 44 | * | |
| 45 | */ | |
| 46 | public class JavaBeanBasedTask extends Task { | |
| 47 | private JavaBeanBasedDemetrixPropertiesHolder data; | |
| 48 | public JavaBeanBasedTask(JavaBeanBasedDemetrixPropertiesHolder data) | |
| 49 | { | |
| 50 | 2 | super(); |
| 51 | 2 | this.data=data; |
| 52 | 2 | } |
| 53 | /* (non-Javadoc) | |
| 54 | * @see net.sourceforge.demetrix.properties.DemetrixPropertiesHolder#addProperty(net.sourceforge.demetrix.properties.DemetrixProperty) | |
| 55 | */ | |
| 56 | public void addProperty(DemetrixProperty property) { | |
| 57 | 2 | if (this.data!=null) |
| 58 | { | |
| 59 | 0 | this.data.addProperty(property); |
| 60 | } | |
| 61 | 2 | } |
| 62 | ||
| 63 | /* (non-Javadoc) | |
| 64 | * @see net.sourceforge.demetrix.properties.DemetrixPropertiesHolder#getAllProperties() | |
| 65 | */ | |
| 66 | public Iterator getAllProperties() { | |
| 67 | 0 | return this.data.getAllProperties(); |
| 68 | } | |
| 69 | ||
| 70 | /* (non-Javadoc) | |
| 71 | * @see net.sourceforge.demetrix.properties.DemetrixPropertiesHolder#getAllPropertyNames() | |
| 72 | */ | |
| 73 | public Enumeration getAllPropertyNames() { | |
| 74 | 0 | return this.data.getAllPropertyNames(); |
| 75 | } | |
| 76 | ||
| 77 | /* (non-Javadoc) | |
| 78 | * @see net.sourceforge.demetrix.properties.DemetrixPropertiesHolder#getPropertiesStorage() | |
| 79 | */ | |
| 80 | public DemetrixPropertiesHolder getPropertiesStorage() { | |
| 81 | 1 | return this.data.getPropertiesStorage(); |
| 82 | } | |
| 83 | ||
| 84 | /* (non-Javadoc) | |
| 85 | * @see net.sourceforge.demetrix.properties.DemetrixPropertiesHolder#getProperty(java.lang.String) | |
| 86 | */ | |
| 87 | public DemetrixProperty getProperty(String name) { | |
| 88 | 2 | return this.data.getProperty(name); |
| 89 | } | |
| 90 | ||
| 91 | } |
|
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |