Namespace: Consultingwerk.Framework.Base
Class 
Dictionary Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.Base.IEnumerable, Consultingwerk.Framework.Base.ISupportsListChanged, Consultingwerk.Framework.Base.ISupportsListHash

File:Dictionary
Purpose:A Dictionary class for Progress.Lang.Object instances
with a CHARACTER value as the Key
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Dec 27 15:01:32 CET 2009



Top Method Summary
Options Name Purpose
+ Progress.Lang.Object Add (character, Object) Adds an Item to the Dictionary
+ Progress.Lang.Object AddWhenNotContained (character, Object) Adds an Item to the Dictionary only when it is not yet contained - silently ignores keys that are already contained
+ Clear () Removes all items from the List
+ LOGICAL ContainsItem (Object) Determines if an object is a member of the Dictionary
+ LOGICAL ContainsKey (character) Determines if an key is a member of the Dictionary
+ Consultingwerk.Framework.Base.IEnumerator GetEnumerator () Returns a new IEnumerator instance for this object instance
+ Progress.Lang.Object GetItem (character) Returns the Item at the specified Key
+ CHARACTER GetKey (Object) Returns the Key of the specified Item
# OnListChanged (ListChangedEventArgs) Raises the ListChanged event
+ LOGICAL RemoveItem (Object) Removes the first occurrence of a specific object from the List
+ RemoveKey (character) Removes the Dictionary item at the specified index.

Top Constructor Summary
Options Name Purpose
+ Dictionary () Constructor for the Dictionary class

Top Event Summary
Options Name Purpose
+ ListChanged (Object, ListChangedEventArgs) Raised when the Dictionary is changed by adding or removing items or clearing the dictionary

Top Property Summary
Options Name Purpose
+ INTEGER Count
+ CHARACTER ListHash


Method Detail
Top

PUBLIC Progress.Lang.Object Add (character, Object)

Purpose: Adds an Item to the Dictionary
Notes:

Parameters:
pcKey CHARACTER
The key value
poItem Progress.Lang.Object
The Item to add to the List
Returns Progress.Lang.Object
The item that was added to the list
Top

PUBLIC Progress.Lang.Object AddWhenNotContained (character, Object)

Purpose: Adds an Item to the Dictionary only when it is not yet
contained - silently ignores keys that are already contained
Notes:

Parameters:
pcKey CHARACTER
The key value
poItem Progress.Lang.Object
The Item to add to the List
Returns Progress.Lang.Object
The item that was added to the list
Top

PUBLIC Clear ()

Purpose: Removes all items from the List
Notes:

Top

PUBLIC LOGICAL ContainsItem (Object)

Purpose: Determines if an object is a member of the Dictionary
Notes:

Parameters:
poListItem Progress.Lang.Object
The object to locate in the Dictionary
Returns LOGICAL
Logical value indicating if the object is contained in the Dictionary
Top

PUBLIC LOGICAL ContainsKey (character)

Purpose: Determines if an key is a member of the Dictionary
Notes:

Parameters:
pcKey CHARACTER
The key to locate in the Dictionary
Returns LOGICAL
Logical value indicating if the object is contained in the Dictionary
Top

PUBLIC Consultingwerk.Framework.Base.IEnumerator GetEnumerator ()

Purpose: Returns a new IEnumerator instance for this object instance
Notes:

Returns Consultingwerk.Framework.Base.IEnumerator
The IEnumerator instance for this object
Top

PUBLIC Progress.Lang.Object GetItem (character)

Purpose: Returns the Item at the specified Key
Notes:

Parameters:
pcKey CHARACTER
The Key of the Item to be returned
Returns Progress.Lang.Object
The object at the specified dictionary position
Top

PUBLIC CHARACTER GetKey (Object)

Purpose: Returns the Key of the specified Item
Notes:

Parameters:
poItem Progress.Lang.Object
The Item to return the Key for
Returns CHARACTER
The Key of the given Item
Top

PROTECTED OnListChanged (ListChangedEventArgs)

Purpose: Raises the ListChanged event
Notes:

Parameters:
e Consultingwerk.Framework.Base.ListChangedEventArgs
The ListChangedEventArgs object instance with the data of the ListChanged event
Top

PUBLIC LOGICAL RemoveItem (Object)

Purpose: Removes the first occurrence of a specific object from the List
Notes:

Parameters:
poDictionaryItem Progress.Lang.Object
The member to remove from the List
Returns LOGICAL
Logical value indicating if the item has been removed
Top

PUBLIC RemoveKey (character)

Purpose: Removes the Dictionary item at the specified index.
Notes:

Parameters:
pcKey CHARACTER
The Index of the Item to remove from the Dictionary


Constructor Detail
Top

PUBLIC Dictionary ()

Purpose: Constructor for the Dictionary class
Notes:



Event Detail
Top

PUBLIC ListChanged (Object, ListChangedEventArgs)

Purpose: Raised when the Dictionary is changed by adding or removing items or
clearing the dictionary
Notes:

Parameters:
sender Progress.Lang.Object
The sender of the event
e Consultingwerk.Framework.Base.ListChangedEventArgs
The ListChangedEventArgs object instance with the data of the ListChanged event


Property Detail
Top

PUBLIC INTEGER Count


Returns INTEGER
Top

PUBLIC CHARACTER ListHash


Returns CHARACTER


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