OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Verification.TGeneralChecks Class Reference

Class for general verifications that are needed both on Server and Client side. More...

Static Public Member Functions

static TVerificationResult ValueMustNotBeNull (object AValue, string ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an Object is null. More...
 
static TVerificationResult ValueMustNotBeNullOrEmptyString (object AValue, string ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an Object is null value or empty string. More...
 

Detailed Description

Class for general verifications that are needed both on Server and Client side.

None of the data verifications in here must access the database since the Client doesn't have access to the database!

Member Function Documentation

◆ ValueMustNotBeNull()

static TVerificationResult Ict.Common.Verification.TGeneralChecks.ValueMustNotBeNull ( object  AValue,
string  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an Object is null.

Parameters
AValueThe Object to check.
ADescriptionDescription what the value is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue is not null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ ValueMustNotBeNullOrEmptyString()

static TVerificationResult Ict.Common.Verification.TGeneralChecks.ValueMustNotBeNullOrEmptyString ( object  AValue,
string  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an Object is null value or empty string.

Parameters
AValueThe Object to check.
ADescriptionDescription what the value is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue is not null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

The documentation for this class was generated from the following file: