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

File:HandleAssert
Purpose:Static class that provide standarized validation routines
for (WIDGET-)HANDLE parameters.
Syntax:Static methods only, private constructor to disallow
instance creation
Description:Routines in this class typically raise an error condition
when the condition is not met.
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Apr 28 13:05:38 CEST 2011
Notes:Static methods, throw error on failed test.



Top Method Summary
Options Name Purpose
+ CanQuery (handle, character) Validates that a (WIDGET-)HANDLE has the given property (writable)
+ CanSet (handle, character) Validates that a (WIDGET-)HANDLE has the given property (writable)
+ InValidHandle (handle) Validates a (WIDGET-)HANDLE and raises an AssertException when the widget is valid
+ InValidHandle (handle, character) Validates a (WIDGET-)HANDLE and raises an AssertException when the widget is valid
+ IsAsyncRequest (handle) Validates the type of the given widget
+ IsBrowse (handle) Validates the type of the given widget
+ IsBrowseColumn (handle) Validates the type of the given widget
+ IsBuffer (handle) Validates the type of the given widget
+ IsBufferField (handle) Validates the type of the given widget
+ IsButton (handle) Validates the type of the given widget
+ IsComboBox (handle) Validates the type of the given widget
+ IsControlFrame (handle) Validates the type of the given widget
+ IsDataRelation (handle) Validates the type of the given widget
+ IsDataset (handle) Validates the type of the given widget
+ IsDataSource (handle) Validates the type of the given widget
+ IsDialogBox (handle) Validates the type of the given widget
+ IsEditor (handle) Validates the type of the given widget
+ IsFieldGroup (handle) Validates the type of the given widget
+ IsFillIn (handle) Validates the type of the given widget
+ IsFrame (handle) Validates the type of the given widget
+ IsImage (handle) Validates the type of the given widget
+ IsLiteral (handle) Validates the type of the given widget
+ IsMenu (handle) Validates the type of the given widget
+ IsMenuItem (handle) Validates the type of the given widget
+ IsProcedure (handle) Validates the type of the given widget
+ IsQuery (handle) Validates the type of the given widget
+ IsRadioSet (handle) Validates the type of the given widget
+ IsRectangle (handle) Validates the type of the given widget
+ IsSaxAttributes (handle) Validates the type of the given widget
+ IsSaxReader (handle) Validates the type of the given widget
+ IsSelectionList (handle) Validates the type of the given widget
+ IsServer (handle) Validates the type of the given widget
+ IsServerSocket (handle) Validates the type of the given widget
+ IsSlider (handle) Validates the type of the given widget
+ IsSoapFault (handle) Validates the type of the given widget
+ IsSoapFaultDetail (handle) Validates the type of the given widget
+ IsSoapHeader (handle) Validates the type of the given widget
+ IsSoapHeaderEntryRef (handle) Validates the type of the given widget
+ IsSocket (handle) Validates the type of the given widget
+ IsStream (handle) Validates the type of the given widget
+ IsSubMenu (handle) Validates the type of the given widget
+ IsTempTable (handle) Validates the type of the given widget
+ IsText (handle) Validates the type of the given widget
+ IsToggleBox (handle) Validates the type of the given widget
+ IsWindow (handle) Validates the type of the given widget
+ IsXDocument (handle) Validates the type of the given widget
+ IsXNodeRef (handle) Validates the type of the given widget
+ ValidHandle (handle) Validates a (WIDGET-)HANDLE and raises an InvalidHandleException when the widget is invalid
+ ValidHandle (handle, character) Validates a (WIDGET-)HANDLE and raises an InvalidHandleException when the widget is invalid
+ WidgetType (handle, character) Validates the type of the given widget

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


Method Detail
Top

PUBLIC CanQuery (handle, character)

Purpose: Validates that a (WIDGET-)HANDLE has the given property (writable)
Notes:
Throws: Consultingwerk.Exceptions.AssertException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
pcProperty CHARACTER
The name of the property
Top

PUBLIC CanSet (handle, character)

Purpose: Validates that a (WIDGET-)HANDLE has the given property (writable)
Notes:
Throws: Consultingwerk.Exceptions.AssertException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
pcProperty CHARACTER
The name of the property
Top

PUBLIC InValidHandle (handle)

Purpose: Validates a (WIDGET-)HANDLE and raises an AssertException
when the widget is valid
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC InValidHandle (handle, character)

Purpose: Validates a (WIDGET-)HANDLE and raises an AssertException
when the widget is valid
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
pcHandleDesc CHARACTER
The optional description of the HANDLE used in the InvalidHandleException
Top

PUBLIC IsAsyncRequest (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsBrowse (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsBrowseColumn (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsBuffer (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsBufferField (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsButton (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsComboBox (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsControlFrame (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsDataRelation (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsDataset (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsDataSource (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsDialogBox (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsEditor (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsFieldGroup (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsFillIn (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsFrame (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsImage (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsLiteral (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsMenu (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsMenuItem (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsProcedure (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsQuery (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsRadioSet (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsRectangle (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSaxAttributes (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSaxReader (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSelectionList (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsServer (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsServerSocket (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSlider (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSoapFault (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSoapFaultDetail (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSoapHeader (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSoapHeaderEntryRef (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSocket (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsStream (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsSubMenu (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsTempTable (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsText (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsToggleBox (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsWindow (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsXDocument (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC IsXNodeRef (handle)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC ValidHandle (handle)

Purpose: Validates a (WIDGET-)HANDLE and raises an InvalidHandleException
when the widget is invalid
Notes:
Throws: Consultingwerk.Exceptions.InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
Top

PUBLIC ValidHandle (handle, character)

Purpose: Validates a (WIDGET-)HANDLE and raises an InvalidHandleException
when the widget is invalid
Notes:
Throws: Consultingwerk.Exceptions.InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
pcHandleDesc CHARACTER
The optional description of the HANDLE used in the InvalidHandleException
Top

PUBLIC WidgetType (handle, character)

Purpose: Validates the type of the given widget
Notes:
Throws: Consultingwerk.Exceptions.InvalidTypeException or InvalidHandleException

Parameters:
phHandle HANDLE
The (WIDGET-)HANDLE to validate
pcType CHARACTER
The expected Widget TYPE


Constructor Detail
Top

PRIVATE HandleAssert ()

Purpose: Disallow instance creation
Notes:



©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:25:39