Coverage report

| %line | %branch
--- | --- | ---
tsukuba_bunko.resource.BooleanDeserializer |
40% |
50% |

1 |  |
     /*
2 |  |
      * "Peko" Visual Novel System
3 |  |
      *
4 |  |
      * All Rights Reserved.
5 |  |
      * (c) Copyright 1999-2003 by Tsukuba Bunko.
6 |  |
      *
7 |  |
      * $Id: BooleanDeserializer.java,v 1.1 2005/07/11 12:49:18 ppoi Exp $
8 |  |
      */
9 |  |
     package tsukuba_bunko.resource;
10 |  |
11 |  |
     /**
12 |  |
      * <code>java.lang.Boolean</code> 型のデータをデシリアライズする Deserializer です。
13 |  |
      * @author	$Author: ppoi $
14 |  |
      * @version	$Revision: 1.1 $
15 |  |
      */
16 |  |
     public class BooleanDeserializer	extends SimpleDeserializer	{
17 |  |
18 |  |
     	/**
19 |  |
     	 * <code>BooleanDeserializer</code> のインスタンスを生成します。
20 |  |
     	 */
21 |  |
     	public BooleanDeserializer()
22 |  |
     	{
23 | 80 |
     		super();
24 | 80 |
     	}
25 |  |
26 |  |
27 |  |
     //
28 |  |
     //	SimpleDeserializer の実装
29 |  |
     //
30 |  |
     	public Object convertValue( String source )
31 |  |
     	{
32 | 0 |
     		if( (source != null) && ("true".equalsIgnoreCase(source) || "yes".equalsIgnoreCase(source) || "on".equalsIgnoreCase(source)) )	{
33 | 0 |
     			return Boolean.TRUE;
34 |  |
     		}
35 |  |
     		else	{
36 | 0 |
     			return Boolean.FALSE;
37 |  |
     		}
38 |  |
     	}
39 |  |
     }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.