C# Class SweetVids.Core.Validation.Notification

Inheritance: INotification
Datei anzeigen Open project: rauhryan/sweetvids Class Usage Examples

Public Properties

Property Type Description
INVALID_EMAIL string
INVALID_EMAIL_DOMAIN string
INVALID_FORMAT string
LIST_MUST_NOT_BE_EMPTY string
MUST_BE_GREATER_OR_EQUAL_TO_ZERO string
MUST_BE_GREATER_THAN_ZERO string
MUST_BE_TRUE string
REQUIRED_FIELD string
SYSTEM_FAILURE string

Public Methods

Method Description
AddChild ( string propertyName, INotification notification ) : void
AliasFieldInMessages ( string fieldName, string alias ) : void
AssertValid ( ) : void
Flatten ( ) : Notification
ForEachField ( Action action ) : void
GetChild ( string propertyName ) : INotification
GetMessages ( string fieldName ) : SweetVids.Core.Validation.NotificationMessage[]
HasMessage ( string fieldName, string messageText ) : bool
Include ( Notification peer ) : void
Invalid ( ) : Notification
IsTopLevelValid ( ) : bool
IsValid ( ) : bool
IsValid ( string fieldName ) : bool
MessagesFor ( string fieldName ) : MessageBag
RegisterMessage ( string fieldName, string message, Severity severity ) : NotificationMessage
Valid ( ) : Notification
addMessages ( StringBuilder sb ) : void
gather ( List list ) : void

Method Details

AddChild() public method

public AddChild ( string propertyName, INotification notification ) : void
propertyName string
notification INotification
return void

AliasFieldInMessages() public method

public AliasFieldInMessages ( string fieldName, string alias ) : void
fieldName string
alias string
return void

AssertValid() public method

public AssertValid ( ) : void
return void

Flatten() public method

public Flatten ( ) : Notification
return Notification

ForEachField() public method

public ForEachField ( Action action ) : void
action Action
return void

GetChild() public method

public GetChild ( string propertyName ) : INotification
propertyName string
return INotification

GetMessages() public method

public GetMessages ( string fieldName ) : SweetVids.Core.Validation.NotificationMessage[]
fieldName string
return SweetVids.Core.Validation.NotificationMessage[]

HasMessage() public method

public HasMessage ( string fieldName, string messageText ) : bool
fieldName string
messageText string
return bool

Include() public method

public Include ( Notification peer ) : void
peer Notification
return void

Invalid() public static method

public static Invalid ( ) : Notification
return Notification

IsTopLevelValid() public method

public IsTopLevelValid ( ) : bool
return bool

IsValid() public method

public IsValid ( ) : bool
return bool

IsValid() public method

public IsValid ( string fieldName ) : bool
fieldName string
return bool

MessagesFor() public method

public MessagesFor ( string fieldName ) : MessageBag
fieldName string
return MessageBag

RegisterMessage() public method

public RegisterMessage ( string fieldName, string message, Severity severity ) : NotificationMessage
fieldName string
message string
severity Severity
return NotificationMessage

Valid() public static method

public static Valid ( ) : Notification
return Notification

addMessages() public method

public addMessages ( StringBuilder sb ) : void
sb StringBuilder
return void

gather() public method

public gather ( List list ) : void
list List
return void

Property Details

INVALID_EMAIL public_oe static_oe property

public static string INVALID_EMAIL
return string

INVALID_EMAIL_DOMAIN public_oe static_oe property

public static string INVALID_EMAIL_DOMAIN
return string

INVALID_FORMAT public_oe static_oe property

public static string INVALID_FORMAT
return string

LIST_MUST_NOT_BE_EMPTY public_oe static_oe property

public static string LIST_MUST_NOT_BE_EMPTY
return string

MUST_BE_GREATER_OR_EQUAL_TO_ZERO public_oe static_oe property

public static string MUST_BE_GREATER_OR_EQUAL_TO_ZERO
return string

MUST_BE_GREATER_THAN_ZERO public_oe static_oe property

public static string MUST_BE_GREATER_THAN_ZERO
return string

MUST_BE_TRUE public_oe static_oe property

public static string MUST_BE_TRUE
return string

REQUIRED_FIELD public_oe static_oe property

public static string REQUIRED_FIELD
return string

SYSTEM_FAILURE public_oe static_oe property

public static string SYSTEM_FAILURE
return string