Clover.NET coverage report - Coverage

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

File Stats: LOC: 90   Methods: 6
NCLOC: 30 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Model\AttributeModel\XPK.cs - 0,0 % 0,0 % 0,0 %
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   namespace ShowX.Model.AttributeModel
25   {
26   /// <summary>
27   /// Represents a property that returns a unique (integer) identifier for the
28   /// instance.
29   /// </summary>
30   /// <remarks>This attribute is mandatory in the definition of the class, because
31   /// Object Handler methods like <see cref="IObjectHandler.GetXByID"/> and
32   /// <see cref="IObjectHandler.UpdateX"/>
33   /// depends on the existence of this value to work properly.</remarks>
34   public class XPK : XAttr, IIdentifierMap
35   {
36   /// <summary>
37   /// Represent the name of a substitute attribute for this primary key attribute.
38   /// As many times we don't want to show identifiers of our objects, the
39   /// primary key attributes can define a substitute attribute, that will be
40   /// shown instead of him.
41   /// </summary>
42   protected string substituteAttr = "";
43  
44   /// <summary>
45   /// Constructor. Set to true the readOnly value. Set to false the
46   /// editOnInset value.
47   /// </summary>
48 0 public XPK ()
49   {
50   this.readOnly = true;
51   this.editOnInsert = false;
52   }
53  
54   /// <summary>
55   /// Reflex the <see cref="substituteAttr"/> field.
56   /// </summary>
57 0 public string SubstituteAttr
58   {
59   get { return substituteAttr; }
60   set { this.substituteAttr = value; }
61   }
62  
63   /// <summary>
64   /// Override the inherited ReadOnly property, so the value of the field
65   /// readOnly can't be altered.
66   /// </summary>
67 0 public override bool ReadOnly
68   {
69   set {}
70   }
71  
72   /// <summary>
73   /// Override the inherited EditOnInsert property, so the value of the field
74   /// editOnInsert can't be altered.
75   /// </summary>
76 0 public override bool EditOnInsert
77   {
78   set {}
79   }
80  
81   /// <summary>
82   /// Override the inherited IsPassword property, so the value of the field
83   /// isPassword can't be altered.
84   /// </summary>
85 0 public override bool IsPassword
86   {
87   set {}
88   }
89   }
90   }