Clover.NET coverage report - Coverage

Coverage timestamp: Friday, May 20, 2005 9:17:00 PM

File Stats: LOC: 79   Methods: 2
NCLOC: 38 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Configuration\SerializerFactory.cs - 100.0 % 100.0 % 100.0 %
coverage
1  
2   #region Apache Notice
3   /*****************************************************************************
4   * $Header: $
5   * $Revision: $
6   * $Date: $
7   *
8   * iBATIS.NET Data Mapper
9   * Copyright (C) 2004 - Gilles Bayon
10   *
11   *
12   * Licensed under the Apache License, Version 2.0 (the "License");
13   * you may not use this file except in compliance with the License.
14   * You may obtain a copy of the License at
15   *
16   * http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing, software
19   * distributed under the License is distributed on an "AS IS" BASIS,
20   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   * See the License for the specific language governing permissions and
22   * limitations under the License.
23   *
24   ********************************************************************************/
25   #endregion
26  
27   #region Imports
28   using System;
29   using System.Collections;
30   using System.Xml.Serialization;
31  
32   using IBatisNet.DataMapper.Configuration.Sql.Dynamic.Elements;
33   #endregion
34  
35   namespace IBatisNet.DataMapper.Configuration
36   {
37   /// <summary>
38   /// Summary description for SerializerFactory.
39   /// </summary>
40   public class SerializerFactory
41   {
42   private static Hashtable _serializerMap = new Hashtable();
43  
44   /// <summary>
45   ///
46   /// </summary>
47 1 static SerializerFactory()
48   {
49 1 _serializerMap.Add("dynamic", new XmlSerializer(typeof(Dynamic)));
50 1 _serializerMap.Add("isEqual", new XmlSerializer(typeof(IsEqual)));
51 1 _serializerMap.Add("isNotEqual", new XmlSerializer(typeof(IsNotEqual)));
52 1 _serializerMap.Add("isGreaterEqual", new XmlSerializer(typeof(IsGreaterEqual)));
53 1 _serializerMap.Add("isGreaterThan", new XmlSerializer(typeof(IsGreaterThan)));
54 1 _serializerMap.Add("isLessEqual", new XmlSerializer(typeof(IsLessEqual)));
55 1 _serializerMap.Add("isLessThan", new XmlSerializer(typeof(IsLessThan)));
56 1 _serializerMap.Add("isNotEmpty", new XmlSerializer(typeof(IsNotEmpty)));
57 1 _serializerMap.Add("isEmpty", new XmlSerializer(typeof(IsEmpty)));
58 1 _serializerMap.Add("isNotNull", new XmlSerializer(typeof(IsNotNull)));
59 1 _serializerMap.Add("isNotParameterPresent", new XmlSerializer(typeof(IsNotParameterPresent)));
60 1 _serializerMap.Add("isNotPropertyAvailable", new XmlSerializer(typeof(IsNotPropertyAvailable)));
61 1 _serializerMap.Add("isNull", new XmlSerializer(typeof(IsNull)));
62 1 _serializerMap.Add("isParameterPresent", new XmlSerializer(typeof(IsParameterPresent)));
63 1 _serializerMap.Add("isPropertyAvailable", new XmlSerializer(typeof(IsPropertyAvailable)));
64 1 _serializerMap.Add("iterate", new XmlSerializer(typeof(Iterate)));
65  
66   }
67  
68   /// <summary>
69   ///
70   /// </summary>
71   /// <param name="name"></param>
72   /// <returns></returns>
73 11730 public static XmlSerializer GetSerializer(string name)
74   {
75 11730 return (XmlSerializer) _serializerMap[name];
76   }
77   }
78   }
79