A collection of currently broken rules. More...
Public Member Functions | |
BrokenRulesCollection () | |
Creates a read-write instance of the collection. More... | |
BrokenRule | GetFirstBrokenRule (Csla.Core.IPropertyInfo property) |
Returns the first BrokenRule object corresponding to the specified property. More... | |
BrokenRule | GetFirstBrokenRule (string property) |
Returns the first BrokenRule object corresponding to the specified property. More... | |
BrokenRule | GetFirstMessage (Csla.Core.IPropertyInfo property) |
Returns the first BrokenRule object corresponding to the specified property. More... | |
BrokenRule | GetFirstMessage (Csla.Core.IPropertyInfo property, RuleSeverity severity) |
Returns the first BrokenRule object corresponding to the specified property and severity. More... | |
BrokenRule | GetFirstMessage (string property, RuleSeverity severity) |
Returns the first BrokenRule object corresponding to the specified property and severity. More... | |
override string | ToString () |
Returns the text of all broken rule descriptions, each separated by a Environment.NewLine. More... | |
string | ToString (RuleSeverity severity) |
Returns the text of all broken rule descriptions for a specific severity, each separated by a Environment.NewLine. More... | |
string | ToString (string separator) |
Returns the text of all broken rule descriptions. More... | |
string | ToString (string separator, RuleSeverity severity) |
Returns the text of all broken rule descriptions for a specific severity. More... | |
string | ToString (string separator, RuleSeverity severity, string propertyName) |
Returns the text of all broken rule descriptions for a specific severity and property. More... | |
string[] | ToArray () |
Returns a string array containing all broken rule descriptions. More... | |
string[] | ToArray (RuleSeverity severity) |
Returns a string array containing all broken rule descriptions. More... | |
void | AddRange (List< BrokenRule > list) |
Merges a list of items into the collection. More... | |
Public Member Functions inherited from Csla.Core.ReadOnlyObservableBindingList< BrokenRule > | |
ReadOnlyObservableBindingList () | |
Creates an instance of the object. More... | |
Protected Member Functions | |
override void | OnGetState (SerializationInfo info) |
Override this method to insert your field values into the MobileFormatter serialzation stream. More... | |
override void | OnSetState (SerializationInfo info) |
Override this method to retrieve your field values from the MobileFormatter serialzation stream. More... | |
Protected Member Functions inherited from Csla.Core.ReadOnlyObservableBindingList< BrokenRule > | |
override void | OnCollectionChanged (NotifyCollectionChangedEventArgs e) |
Method invoked when collection is changed. More... | |
override void | SetLoadListMode (bool enabled) |
Sets the LoadListMode for the collection More... | |
override void | OnGetState (Csla.Serialization.Mobile.SerializationInfo info) |
Override this method to insert your field values into the MobileFormatter serialzation stream. More... | |
override void | OnSetState (Csla.Serialization.Mobile.SerializationInfo info) |
Override this method to retrieve your field values from the MobileFormatter serialzation stream. More... | |
override void | OnSetChildren (Csla.Serialization.Mobile.SerializationInfo info, Csla.Serialization.Mobile.MobileFormatter formatter) |
Override this method to retrieve your child object references from the MobileFormatter serialzation stream. More... | |
Properties | |
int | ErrorCount [get] |
Gets the number of broken rules in the collection that have a severity of Error. More... | |
int | WarningCount [get] |
Gets the number of broken rules in the collection that have a severity of Warning. More... | |
int | InformationCount [get] |
Gets the number of broken rules in the collection that have a severity of Information. More... | |
Properties inherited from Csla.Core.ReadOnlyObservableBindingList< BrokenRule > | |
bool | IsReadOnly [getprotected set] |
Gets or sets a value indicating whether the list is readonly. More... | |
A collection of currently broken rules.
This collection is readonly and can be safely made available to code outside the business object such as the UI. This allows external code, such as a UI, to display the list of broken rules to the user.
Definition at line 26 of file BrokenRulesCollection.cs.
Csla.Rules.BrokenRulesCollection.BrokenRulesCollection | ( | ) |
Creates a read-write instance of the collection.
Definition at line 39 of file BrokenRulesCollection.cs.
void Csla.Rules.BrokenRulesCollection.AddRange | ( | List< BrokenRule > | list | ) |
Merges a list of items into the collection.
list | List of items to add. |
Definition at line 434 of file BrokenRulesCollection.cs.
BrokenRule Csla.Rules.BrokenRulesCollection.GetFirstBrokenRule | ( | Csla.Core.IPropertyInfo | property | ) |
Returns the first BrokenRule object corresponding to the specified property.
Code in a business object or UI can also use this value to retrieve the first broken rule in BrokenRulesCollection that corresponds to a specfic property on the object.
property | The property affected by the rule. |
Definition at line 226 of file BrokenRulesCollection.cs.
BrokenRule Csla.Rules.BrokenRulesCollection.GetFirstBrokenRule | ( | string | property | ) |
Returns the first BrokenRule object corresponding to the specified property.
Code in a business object or UI can also use this value to retrieve the first broken rule in BrokenRulesCollection that corresponds to a specfic property on the object.
property | The name of the property affected by the rule. |
Definition at line 245 of file BrokenRulesCollection.cs.
BrokenRule Csla.Rules.BrokenRulesCollection.GetFirstMessage | ( | Csla.Core.IPropertyInfo | property | ) |
Returns the first BrokenRule object corresponding to the specified property.
Code in a business object or UI can also use this value to retrieve the first broken rule in BrokenRulesCollection that corresponds to a specfic property.
property | The name of the property affected by the rule. |
Definition at line 264 of file BrokenRulesCollection.cs.
BrokenRule Csla.Rules.BrokenRulesCollection.GetFirstMessage | ( | Csla.Core.IPropertyInfo | property, |
RuleSeverity | severity | ||
) |
Returns the first BrokenRule object corresponding to the specified property and severity.
property | The property affected by the rule. |
severity | The severity of broken rule to return. |
Definition at line 280 of file BrokenRulesCollection.cs.
BrokenRule Csla.Rules.BrokenRulesCollection.GetFirstMessage | ( | string | property, |
RuleSeverity | severity | ||
) |
Returns the first BrokenRule object corresponding to the specified property and severity.
property | The name of the property affected by the rule. |
severity | The severity of broken rule to return. |
Definition at line 296 of file BrokenRulesCollection.cs.
|
protected |
Override this method to insert your field values into the MobileFormatter serialzation stream.
info | Object containing the data to serialize. |
Definition at line 447 of file BrokenRulesCollection.cs.
|
protected |
Override this method to retrieve your field values from the MobileFormatter serialzation stream.
info | Object containing the data to serialize. |
Definition at line 462 of file BrokenRulesCollection.cs.
string[] Csla.Rules.BrokenRulesCollection.ToArray | ( | ) |
Returns a string array containing all broken rule descriptions.
Definition at line 412 of file BrokenRulesCollection.cs.
string[] Csla.Rules.BrokenRulesCollection.ToArray | ( | RuleSeverity | severity | ) |
Returns a string array containing all broken rule descriptions.
severity | The severity of rules to include in the result. |
Definition at line 425 of file BrokenRulesCollection.cs.
override string Csla.Rules.BrokenRulesCollection.ToString | ( | ) |
Returns the text of all broken rule descriptions, each separated by a Environment.NewLine.
Definition at line 306 of file BrokenRulesCollection.cs.
string Csla.Rules.BrokenRulesCollection.ToString | ( | RuleSeverity | severity | ) |
Returns the text of all broken rule descriptions for a specific severity, each separated by a Environment.NewLine.
severity | The severity of rules to include in the result. |
Definition at line 320 of file BrokenRulesCollection.cs.
string Csla.Rules.BrokenRulesCollection.ToString | ( | string | separator | ) |
Returns the text of all broken rule descriptions.
separator | String to place between each broken rule description. |
Definition at line 332 of file BrokenRulesCollection.cs.
string Csla.Rules.BrokenRulesCollection.ToString | ( | string | separator, |
RuleSeverity | severity | ||
) |
Returns the text of all broken rule descriptions for a specific severity.
separator | String to place between each broken rule description. |
severity | The severity of rules to include in the result. |
Definition at line 358 of file BrokenRulesCollection.cs.
string Csla.Rules.BrokenRulesCollection.ToString | ( | string | separator, |
RuleSeverity | severity, | ||
string | propertyName | ||
) |
Returns the text of all broken rule descriptions for a specific severity and property.
separator | String to place between each broken rule description. |
severity | The severity of rules to include in the result. |
propertyName | Property name |
Definition at line 388 of file BrokenRulesCollection.cs.
|
get |
Gets the number of broken rules in the collection that have a severity of Error.
An integer value.
Definition at line 185 of file BrokenRulesCollection.cs.
|
get |
Gets the number of broken rules in the collection that have a severity of Information.
An integer value.
Definition at line 207 of file BrokenRulesCollection.cs.
|
get |
Gets the number of broken rules in the collection that have a severity of Warning.
An integer value.
Definition at line 196 of file BrokenRulesCollection.cs.