Namespace: Consultingwerk.Assertion
Class 
DatasetAssert Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:DatasetAssert
Purpose:Provides generic methods for validating of ProDataset object handles
Description:Routines in this class typically raise an error condition
when the condition is not met.
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Jul 20 00:20:12 CEST 2011
Notes:Static methods, throw error on failed test.



Top Method Summary
Options Name Purpose
+ HasBuffer (handle, character) Verifies that the passed in ProDataset handle has a buffer with the given name
+ HasNoValidationMessages (handle) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING)
+ HasNoValidationMessages (handle, character) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) for the given field name
+ HasNoValidationMessages (handle, character, character, integer) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) for the given field name and the given message group and number
+ HasNoValidationMessages (handle, character, character, integer, character, character, character, character, character, character, character, character, character) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) for the given field name and the given message group and number
+ HasNoValidationMessages (handle, character, integer) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) of the given message group and number
+ HasNoValidationMessages (handle, character, integer, character, character, character, character, character, character, character, character, character) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) of the given message group and number with the provided substitution values
+ HasValidationMessages (handle) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING)
+ HasValidationMessages (handle, character) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) for the given field name
+ HasValidationMessages (handle, character, character, integer) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) for the given field name and the given message group and number
+ HasValidationMessages (handle, character, character, integer, character, character, character, character, character, character, character, character, character) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) for the given field name and the given message group and number
+ HasValidationMessages (handle, character, integer) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) of the given message group and number
+ HasValidationMessages (handle, character, integer, character, character, character, character, character, character, character, character, character) Verifies that the ProDataset or ProDataset Buffer has any validation messages (BUFFER ERROR-STRING) of the given message group and number with the provided substitution values

Top Constructor Summary
Options Name Purpose
- DatasetAssert () Disallow instance creation


Method Detail
Top

PUBLIC HasBuffer (handle, character)

Purpose: Verifies that the passed in ProDataset handle has a buffer with the
given name
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phDataset HANDLE
The handle of the ProDataset
pcBufferName CHARACTER
The name of the Buffer that should exist
Top

PUBLIC HasNoValidationMessages (handle)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING)
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
Top

PUBLIC HasNoValidationMessages (handle, character)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) for the
given field name
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcFieldName CHARACTER
The name of the field to verify
Top

PUBLIC HasNoValidationMessages (handle, character, character, integer)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) for the
given field name and the given message group and number
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcFieldName CHARACTER
The name of the field to verify
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
Top

PUBLIC HasNoValidationMessages (handle, character, character, integer, character, character, character, character, character, character, character, character, character)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) for the
given field name and the given message group and number
Notes: Only substitution values <> ? will be verified

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcFieldName CHARACTER
The name of the field to verify
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
pcSubstitutionValue1 CHARACTER
The first message substitute value (&1)
pcSubstitutionValue2 CHARACTER
The second message substitute value (&2)
pcSubstitutionValue3 CHARACTER
The third message substitute value (&3)
pcSubstitutionValue4 CHARACTER
The fourth message substitute value (&4)
pcSubstitutionValue5 CHARACTER
The fifth message substitute value (&5)
pcSubstitutionValue6 CHARACTER
The sixth message substitute value (&6)
pcSubstitutionValue7 CHARACTER
The seventh message substitute value (&7)
pcSubstitutionValue8 CHARACTER
The eigth message substitute value (&8)
pcSubstitutionValue9 CHARACTER
The nineth message substitute value (&9)
Top

PUBLIC HasNoValidationMessages (handle, character, integer)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) of the given
message group and number
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
Top

PUBLIC HasNoValidationMessages (handle, character, integer, character, character, character, character, character, character, character, character, character)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) of the given
message group and number with the provided substitution values
Notes: Only substitution values <> ? will be verified

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
pcSubstitutionValue1 CHARACTER
The first message substitute value (&1)
pcSubstitutionValue2 CHARACTER
The second message substitute value (&2)
pcSubstitutionValue3 CHARACTER
The third message substitute value (&3)
pcSubstitutionValue4 CHARACTER
The fourth message substitute value (&4)
pcSubstitutionValue5 CHARACTER
The fifth message substitute value (&5)
pcSubstitutionValue6 CHARACTER
The sixth message substitute value (&6)
pcSubstitutionValue7 CHARACTER
The seventh message substitute value (&7)
pcSubstitutionValue8 CHARACTER
The eigth message substitute value (&8)
pcSubstitutionValue9 CHARACTER
The nineth message substitute value (&9)
Top

PUBLIC HasValidationMessages (handle)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING)
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
Top

PUBLIC HasValidationMessages (handle, character)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) for the
given field name
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcFieldName CHARACTER
The name of the field to verify
Top

PUBLIC HasValidationMessages (handle, character, character, integer)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) for the
given field name and the given message group and number
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcFieldName CHARACTER
The name of the field to verify
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
Top

PUBLIC HasValidationMessages (handle, character, character, integer, character, character, character, character, character, character, character, character, character)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) for the
given field name and the given message group and number
Notes: Only substitution values <> ? will be verified

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcFieldName CHARACTER
The name of the field to verify
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
pcSubstitutionValue1 CHARACTER
The first message substitute value (&1)
pcSubstitutionValue2 CHARACTER
The second message substitute value (&2)
pcSubstitutionValue3 CHARACTER
The third message substitute value (&3)
pcSubstitutionValue4 CHARACTER
The fourth message substitute value (&4)
pcSubstitutionValue5 CHARACTER
The fifth message substitute value (&5)
pcSubstitutionValue6 CHARACTER
The sixth message substitute value (&6)
pcSubstitutionValue7 CHARACTER
The seventh message substitute value (&7)
pcSubstitutionValue8 CHARACTER
The eigth message substitute value (&8)
pcSubstitutionValue9 CHARACTER
The nineth message substitute value (&9)
Top

PUBLIC HasValidationMessages (handle, character, integer)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) of the given
message group and number
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
Top

PUBLIC HasValidationMessages (handle, character, integer, character, character, character, character, character, character, character, character, character)

Purpose: Verifies that the ProDataset or ProDataset Buffer has
any validation messages (BUFFER ERROR-STRING) of the given
message group and number with the provided substitution values
Notes: Only substitution values <> ? will be verified

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
pcMessageGroup CHARACTER
The message group
piMessageNumber INTEGER
The message number
pcSubstitutionValue1 CHARACTER
The first message substitute value (&1)
pcSubstitutionValue2 CHARACTER
The second message substitute value (&2)
pcSubstitutionValue3 CHARACTER
The third message substitute value (&3)
pcSubstitutionValue4 CHARACTER
The fourth message substitute value (&4)
pcSubstitutionValue5 CHARACTER
The fifth message substitute value (&5)
pcSubstitutionValue6 CHARACTER
The sixth message substitute value (&6)
pcSubstitutionValue7 CHARACTER
The seventh message substitute value (&7)
pcSubstitutionValue8 CHARACTER
The eigth message substitute value (&8)
pcSubstitutionValue9 CHARACTER
The nineth message substitute value (&9)


Constructor Detail
Top

PRIVATE DatasetAssert ()

Purpose: Disallow instance creation
Notes:



©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:20:48