| 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 | package net.sourceforge.demetrix.properties.swixml; | |
| 31 | import net.sourceforge.demetrix.properties.*; | |
| 32 | /** | |
| 33 | * @author Dimitri Pissarenko | |
| 34 | * | |
| 35 | */ | |
| 36 | 13 | public class SwixMLPropertyRenderer implements DemetrixPropertyRenderer { |
| 37 | /* (non-Javadoc) | |
| 38 | * @see net.sourceforge.demetrix.properties.DemetrixPropertyRenderer#renderProperty(net.sourceforge.demetrix.properties.DemetrixProperty) | |
| 39 | */ | |
| 40 | public DemetrixPropertyRepresentation renderProperty(DemetrixProperty propertyToRender) { | |
| 41 | 51 | DemetrixPropertyRepresentation representation = null; |
| 42 | 51 | if (propertyToRender instanceof StringProperty) { |
| 43 | 29 | representation = new StringPropertySwixMLRepresentation(); |
| 44 | 22 | } else if (propertyToRender instanceof BooleanProperty) { |
| 45 | 7 | representation = new BooleanPropertySwixMLRepresentation(); |
| 46 | 15 | } else if (propertyToRender instanceof DoubleProperty) { |
| 47 | 7 | representation = new DoublePropertySwixMLRepresentation(); |
| 48 | 8 | } else if (propertyToRender instanceof FileProperty) { |
| 49 | 1 | representation = new FilePropertySwixMLRepresentation(); |
| 50 | 7 | } else if (propertyToRender instanceof IntegerProperty) { |
| 51 | 7 | representation = new IntegerPropertySwixMLRepresentation(); |
| 52 | } | |
| 53 | 51 | return representation; |
| 54 | } | |
| 55 | } |
|
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |