HouseOver.THARM.Item Class Reference

This abstract class represents an item. It inherits from UniquelyIdentifiable. More...

Inheritance diagram for HouseOver.THARM.Item:

Inheritance graph
[legend]
Collaboration diagram for HouseOver.THARM.Item:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Item ()
 When inherited from this constructor creates a new item.
 Item (int id)
 When inherited from this constructor creates a new item with the specified id.
 Item (int id, int postalCode, int area)
 When inherited from this constructor creates a new item with the specified paramters.
 Item ()
 When inherited from this constructor creates a new item.
 Item (int id)
 When inherited from this constructor creates a new item with the specified id.
 Item (int id, int postalCode, int area)
 When inherited from this constructor creates a new item with the specified paramters.

Static Public Member Functions

static List< Type > GetSearchableItems ()
static List< Type > GetSearchableItems ()

Protected Attributes

int postalCode
 The item's postal code.
int area
 The amount of space in the item.

Properties

[SaleCriteria("Postal Code")]
int 
PostalCode [get, set]
 Gets and sets the item's postal code.
[SaleCriteria] int Area [get, set]
 Gets and sets the item's area.

Detailed Description

This abstract class represents an item. It inherits from UniquelyIdentifiable.

Definition at line 13 of file Item.cs.


Constructor & Destructor Documentation

HouseOver.THARM.Item.Item (  ) 

When inherited from this constructor creates a new item.

Definition at line 23 of file Item.cs.

00023 : base(UniquelyIdentifiable.NextID) { }

HouseOver.THARM.Item.Item ( int  id  ) 

When inherited from this constructor creates a new item with the specified id.

Parameters:
id 

Definition at line 29 of file Item.cs.

00029 : base(id) { }

HouseOver.THARM.Item.Item ( int  id,
int  postalCode,
int  area 
)

When inherited from this constructor creates a new item with the specified paramters.

Parameters:
id 
postalCode 
area 

Definition at line 37 of file Item.cs.

00037                                                       : base(id)
00038         {
00039             this.postalCode = postalCode;
00040             this.area = area;
00041         }

HouseOver.THARM.Item.Item (  ) 

When inherited from this constructor creates a new item.

Definition at line 23 of file Item.cs.

00023 : base(UniquelyIdentifiable.NextID) { }

HouseOver.THARM.Item.Item ( int  id  ) 

When inherited from this constructor creates a new item with the specified id.

Parameters:
id 

Definition at line 29 of file Item.cs.

00029 : base(id) { }

HouseOver.THARM.Item.Item ( int  id,
int  postalCode,
int  area 
)

When inherited from this constructor creates a new item with the specified paramters.

Parameters:
id 
postalCode 
area 

Definition at line 37 of file Item.cs.

00037                                                       : base(id)
00038         {
00039             this.postalCode = postalCode;
00040             this.area = area;
00041         }


Member Function Documentation

static List<Type> HouseOver.THARM.Item.GetSearchableItems (  )  [static]

Returns:

Definition at line 47 of file Item.cs.

00048         {
00049             Assembly a = Assembly.GetAssembly(typeof(Item));
00050             Module[] modules = a.GetModules();
00051             List<Type> types = new List<Type>();
00052             foreach (Module m in modules)
00053             {
00054                 Type[] classes = m.FindTypes(delegate(Type t, object g)
00055                 {
00056                     if (t.GetCustomAttributes(typeof(SearchItems), false).Length > 0)
00057                         return true;
00058 
00059                     return false;
00060                 }, null);
00061                 types.AddRange(classes);
00062 
00063             }
00064 
00065             return types;
00066         }

static List<Type> HouseOver.THARM.Item.GetSearchableItems (  )  [static]

Returns:

Definition at line 47 of file Item.cs.

00048         {
00049             Assembly a = Assembly.GetAssembly(typeof(Item));
00050             Module[] modules = a.GetModules();
00051             List<Type> types = new List<Type>();
00052             foreach (Module m in modules)
00053             {
00054                 Type[] classes = m.FindTypes(delegate(Type t, object g)
00055                 {
00056                     if (t.GetCustomAttributes(typeof(SearchItems), false).Length > 0)
00057                         return true;
00058 
00059                     return false;
00060                 }, null);
00061                 types.AddRange(classes);
00062 
00063             }
00064 
00065             return types;
00066         }


Member Data Documentation

int HouseOver::THARM.Item::postalCode [protected]

The item's postal code.

Definition at line 16 of file Item.cs.

int HouseOver::THARM.Item::area [protected]

The amount of space in the item.

Definition at line 18 of file Item.cs.


Property Documentation

[SaleCriteria("Postal Code")] int HouseOver.THARM.Item.PostalCode [get, set]

Gets and sets the item's postal code.

Definition at line 72 of file Item.cs.

[SaleCriteria] int HouseOver.THARM.Item.Area [get, set]

Gets and sets the item's area.

Definition at line 77 of file Item.cs.


The documentation for this class was generated from the following files:
Generated on Wed Jan 10 03:42:55 2007 for THARM by  doxygen 1.5.1-p1