Custom RuleArgs object required by the RegExMatch rule method. More...
Public Types | |
enum | NullResultOptions { ReturnFalse , ReturnTrue , ConvertToEmptyString } |
List of options for the NullResult property. More... | |
Public Member Functions | |
RegExRuleArgs (string propertyName, RegExPatterns pattern) | |
Creates a new object. More... | |
RegExRuleArgs (Core.IPropertyInfo propertyInfo, RegExPatterns pattern) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string friendlyName, RegExPatterns pattern) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string pattern) | |
Creates a new object. More... | |
RegExRuleArgs (Core.IPropertyInfo propertyInfo, string pattern) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string friendlyName, string pattern) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, System.Text.RegularExpressions.Regex regEx) | |
Creates a new object. More... | |
RegExRuleArgs (Core.IPropertyInfo propertyInfo, System.Text.RegularExpressions.Regex regEx) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string friendlyName, System.Text.RegularExpressions.Regex regEx) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, RegExPatterns pattern, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (Core.IPropertyInfo propertyInfo, RegExPatterns pattern, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string friendlyName, RegExPatterns pattern, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string pattern, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (Core.IPropertyInfo propertyInfo, string pattern, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string friendlyName, string pattern, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, System.Text.RegularExpressions.Regex regEx, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (Core.IPropertyInfo propertyInfo, System.Text.RegularExpressions.Regex regEx, NullResultOptions nullResult) | |
Creates a new object. More... | |
RegExRuleArgs (string propertyName, string friendlyName, System.Text.RegularExpressions.Regex regEx, NullResultOptions nullResult) | |
Creates a new object. More... | |
Public Member Functions inherited from Csla.Validation.DecoratedRuleArgs | |
DecoratedRuleArgs (string propertyName) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity, bool stopProcessing, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, bool stopProcessing, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity, bool stopProcessing, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
override string | ToString () |
Return a string representation of the object using the rule:// URI format. More... | |
Public Member Functions inherited from Csla.Validation.RuleArgs | |
RuleArgs (string propertyName) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (Core.IPropertyInfo propertyInfo) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, string friendlyName) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, string friendlyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, string friendlyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
override string | ToString () |
Returns a string representation of the object. More... | |
Static Public Member Functions | |
static string | GetPattern (RegExPatterns pattern) |
Returns the specified built-in regex pattern. More... | |
Static Public Member Functions inherited from Csla.Validation.RuleArgs | |
static string | GetPropertyName (RuleArgs e) |
Gets the property name from the RuleArgs object, using the friendly name if one is defined. More... | |
Properties | |
Regex | RegEx [get] |
The RegEx object used to validate the property. More... | |
NullResultOptions | NullResult [get] |
Gets a value indicating whether a null value means the rule will return true or false. More... | |
Properties inherited from Csla.Validation.DecoratedRuleArgs | |
object | this[string key] [getset] |
Gets or sets an argument value for use by the rule method. More... | |
Properties inherited from Csla.Validation.RuleArgs | |
string | PropertyName [get] |
The name of the property to be validated. More... | |
string | PropertyFriendlyName [getset] |
Gets or sets a friendly name for the property, which will be used in place of the property name when creating the broken rule description string. More... | |
string | Description [getset] |
Set by the rule handler method to describe the broken rule. More... | |
RuleSeverity | Severity [getset] |
Gets or sets the severity of the broken rule. More... | |
bool | StopProcessing [getset] |
Gets or sets a value indicating whether this broken rule should stop the processing of subsequent rules for this property. More... | |
Custom RuleArgs object required by the RegExMatch rule method.
Definition at line 965 of file Csla.Validation.Shared/CommonRules.cs.
List of options for the NullResult property.
Definition at line 973 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
RegExPatterns | pattern | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
pattern | Built-in regex pattern to use. |
Definition at line 1025 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
RegExPatterns | pattern | ||
) |
Creates a new object.
propertyInfo | Property to validate. |
pattern | Built-in regex pattern to use. |
Definition at line 1037 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
RegExPatterns | pattern | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
pattern | Built-in regex pattern to use. |
Definition at line 1052 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | pattern | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
pattern | Custom regex pattern to use. |
Definition at line 1065 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
string | pattern | ||
) |
Creates a new object.
propertyInfo | Property to validate. |
pattern | Custom regex pattern to use. |
Definition at line 1077 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
string | pattern | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
pattern | Custom regex pattern to use. |
Definition at line 1092 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
System.Text.RegularExpressions.Regex | regEx | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
regEx | RegEx object to use. |
Definition at line 1105 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
System.Text.RegularExpressions.Regex | regEx | ||
) |
Creates a new object.
propertyInfo | Property to validate. |
regEx | RegEx object to use. |
Definition at line 1117 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
System.Text.RegularExpressions.Regex | regEx | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
regEx | RegEx object to use. |
Definition at line 1132 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
RegExPatterns | pattern, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
pattern | Built-in regex pattern to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1149 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
RegExPatterns | pattern, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyInfo | Property to validate. |
pattern | Built-in regex pattern to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1165 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
RegExPatterns | pattern, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
pattern | Built-in regex pattern to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1184 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | pattern, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
pattern | Custom regex pattern to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1201 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
string | pattern, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyInfo | Property to validate. |
pattern | Custom regex pattern to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1217 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
string | pattern, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
pattern | Custom regex pattern to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1236 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
System.Text.RegularExpressions.Regex | regEx, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
regEx | RegEx object to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1253 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
System.Text.RegularExpressions.Regex | regEx, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyInfo | Property to validate. |
regEx | RegEx object to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1269 of file Csla.Validation.Shared/CommonRules.cs.
Csla.Validation.CommonRules.RegExRuleArgs.RegExRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
System.Text.RegularExpressions.Regex | regEx, | ||
NullResultOptions | nullResult | ||
) |
Creates a new object.
propertyName | Name of the property to validate. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
regEx | RegEx object to use. |
nullResult | Value indicating how a null value should be handled by the rule method. |
Definition at line 1288 of file Csla.Validation.Shared/CommonRules.cs.
|
static |
Returns the specified built-in regex pattern.
pattern | Pattern to return. |
Definition at line 1300 of file Csla.Validation.Shared/CommonRules.cs.
|
get |
Gets a value indicating whether a null value means the rule will return true or false.
Definition at line 1012 of file Csla.Validation.Shared/CommonRules.cs.
|
get |
The RegEx object used to validate the property.
Definition at line 1003 of file Csla.Validation.Shared/CommonRules.cs.