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

Purpose: Disallow instance creation
Notes:



Top Method Summary
Options Name Purpose
+ IsNotValid (Object) Validates an object reference and raises an Exception when the reference is valid
+ IsNotValid (Object, character) Validates an object reference and raises an Exception when the reference is valid
+ IsValid (Object) Validates an object reference and raises an InvalidReferenceException when the widget is invalid
+ IsValid (Object, character) Validates an object reference and raises an InvalidReferenceException when the widget is invalid
+ TypeOf (Object, character) Validates an object reference for validity and the passed in typename and raises error when the tests fail
+ TypeOf (Object, character, character) Validates an object reference for validity and the passed in typename and raises error when the tests fail

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


Method Detail
Top

PUBLIC IsNotValid (Object)

Purpose: Validates an object reference and raises an Exception when the
reference is valid
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
poObject Progress.Lang.Object
The object reference to validate
Top

PUBLIC IsNotValid (Object, character)

Purpose: Validates an object reference and raises an Exception when the
reference is valid
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
poObject Progress.Lang.Object
The object reference to validate
pcObjectDesc CHARACTER
The optional description of the object reference used in the InvalidReferenceException
Top

PUBLIC IsValid (Object)

Purpose: Validates an object reference and raises an InvalidReferenceException
when the widget is invalid
Notes:
Throws: Consultingwerk.Exceptions.InvalidReferenceException

Parameters:
poObject Progress.Lang.Object
The object reference to validate
Top

PUBLIC IsValid (Object, character)

Purpose: Validates an object reference and raises an InvalidReferenceException
when the widget is invalid
Notes:
Throws: Consultingwerk.Exceptions.InvalidReferenceException

Parameters:
poObject Progress.Lang.Object
The object reference to validate
pcObjectDesc CHARACTER
The optional description of the object reference used in the InvalidReferenceException
Top

PUBLIC TypeOf (Object, character)

Purpose: Validates an object reference for validity and the passed in typename
and raises error when the tests fail
Notes: Use this method to test for ABL types only
Throws: Consultingwerk.Exceptions.InvalidTypeException

Parameters:
poObject Progress.Lang.Object
The object reference to validate
pcClassName CHARACTER
The object type (ABL class) to test against
Top

PUBLIC TypeOf (Object, character, character)

Purpose: Validates an object reference for validity and the passed in typename
and raises error when the tests fail
Notes: Use this method to test for ABL types only
Throws: Consultingwerk.Exceptions.InvalidTypeException

Parameters:
poObject Progress.Lang.Object
The object reference to validate
pcClassName CHARACTER
The object type (ABL class) to test against
pcObjectDesc CHARACTER
The optional description of the object reference used in the Error


Constructor Detail
Top

PRIVATE ObjectAssert ()

Purpose: Disallow instance creation
Notes:



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:56:14