00001 using System; 00002 using System.Collections.Generic; 00003 using System.Text; 00004 00008 namespace HouseOver.THARM.Search 00009 { 00013 [Serializable] 00014 public abstract class Check 00015 { 00017 protected string name; 00019 protected string humanReadableName; 00021 protected bool fieldRequired; 00023 private Type fieldType; 00024 00030 public Check(string name, Type fieldType) 00031 { 00032 this.name = name; 00033 this.humanReadableName = name; 00034 this.fieldType = fieldType; 00035 } 00036 00044 public Check(string name, string humanReadableName, bool fieldRequired, Type fieldType) 00045 { 00046 this.name = name; 00047 this.humanReadableName = humanReadableName; 00048 this.fieldType = fieldType; 00049 this.fieldRequired = fieldRequired; 00050 } 00051 00057 public abstract bool Verify(object obj); 00058 00060 public string HumanReadableName { get { return humanReadableName; } set { humanReadableName = value; } } 00062 public Type FieldType { get { return fieldType; } set { fieldType = value; } } 00064 public string Name { get { return name; } set { name = value; } } 00066 public bool FieldRequired { get { return fieldRequired; } set { fieldRequired = value; } } 00067 00068 } 00069 }