Clover.NET coverage report - Coverage

Coverage timestamp: viernes, 12 de agosto de 2005 12:53:38 PM

File Stats: LOC: 69   Methods: 2
NCLOC: 20 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Model\XmlModel\XmlForeignIdentifierMap.cs - 100,0 % 50,0 % 75,0 %
coverage coverage
1   #region Copyright
2   /*
3   ShowX. Maps business objects into presentation layer.
4   Copyright (C) 2005 Jesus Diaz.
5  
6   This library is free software; you can redistribute it and/or
7   modify it under the terms of the GNU Lesser General Public
8   License as published by the Free Software Foundation; either
9   version 2.1 of the License, or (at your option) any later version.
10  
11   This library is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14   Lesser General Public License for more details.
15  
16   You should have received a copy of the GNU Lesser General Public
17   License along with this library; if not, write to the Free Software
18   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  
20   For project details see: http://showx.sourceforge.net
21   */
22   #endregion
23  
24   using System;
25   using System.Xml;
26  
27   namespace ShowX.Model.XmlModel
28   {
29   /// <summary>
30   /// Keep information about a property that represent a reference to another ShowX
31   /// object.
32   /// </summary>
33   /// <remarks>
34   /// <para>
35   /// In case of properties that returns ShowX objects (i.e, objects of
36   /// classes that implements administrative methods as GetAllX and so) it is
37   /// posible an special treatment over them. For example, to use a drowpdown list
38   /// to show all the possible values of the foreign type, and mark as selected the
39   /// associated value to the treated instance.
40   /// </para>
41   /// <para>
42   /// This funcionality could be deduced
43   /// from the return type of the property, so it migth be deleted in the future.
44   /// </para>
45   /// </remarks>
46   public class XmlForeignIdentifierMap : XmlPropertyMap, IForeignIdentifierMap
47   {
48   /// <summary>
49   /// Constructor. Set to true the readOnly value. Set to false the
50   /// editOnInset value.
51   /// </summary>
52 8 public XmlForeignIdentifierMap (Type t, XmlNode propertyNode)
53   : base(t,propertyNode)
54   {
55 8 this.readOnly = true;
56 8 this.show = false;
57   }
58  
59   /// <summary>
60   /// Override the inherited ReadOnly property, so the value of the field
61   /// readOnly can't be altered.
62   /// </summary>
63 0 public override bool ReadOnly
64   {
65   set {}
66   }
67   }
68   }
69