Namespace: OpenEdge.Core.Util
Class
BuilderRegistry
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object

Copyright (c) 2016 by Progress Software Corporation. All rights reserved.
File:BuilderRegistry
Purpose:General registry for name/Progress.Lang.Class pairs used
by the various builders.
Author(s):pjudge
Created:Thu Feb 12 11:39:54 EST 2015
Notes:* this is technically a typed Map, but will be kept separate




Method Summary
Options Name Purpose
Clear () /** Clears all the entries from this registry */
Progress.Lang.Class Get (character) /** Returns a registered type, if it exists. returns null otherwise. @param character The name of the content type to register @return Progress.Lang.Class A valid value if it exists. Null otherwise .*/
CHARACTER GetKeys () /** Returns an array of the key names in this registry. @return character[] The key values. Indeterminate array if empty. */
LOGICAL Has (character) /** Indicates whether a content type is registered or not. @param character The name of the content type to register @return logical True if the content type is registered */
LOGICAL Put (character, Class) /** Registers type for a key @param character The key of the type to register @param Class The type of the writer used to process that type @return logical True if the type was previously registered */
PutAll (BuilderRegistry) /* Adds the contents of one registry to another. THis is an overwite operation (ie existing maps are overwritten; new ones added) Call Clear() to delete nefore additions. @param BuilderRegistry THe source of entries to add */
LOGICAL Remove (character) /** Deregisters a content type writer @param character The name of the content type to register @return logical True if the content type was previously registered */

Constructor Summary
Options Name Purpose
BuilderRegistry () /** Default constructor */
BuilderRegistry (BuilderRegistry) /** Constructor Creates clone of the input registry into the current one. @param BuilderRegistry THe source registry */
BuilderRegistry (Class) /** Constructor @param Progress.Lang.Class The type that the registered value must conform to (via IsA() ). */

Property Summary
Options Name Purpose
INTEGER Size /* Returns the number of mappings in this map.*/
Progress.Lang.Class ValueType /** (optional) The type of the registered Type (defaults to PLO) */


Method Detail
Top

Clear ()

Purpose: Clears all the entries from this registry
Top

Progress.Lang.Class Get (character)

Purpose: Returns a registered type, if it exists. returns null otherwise.
Parameters:
pcTypeKey CHARACTER
Returns Progress.Lang.Class
Progress.Lang.Class A valid value if it exists. Null otherwise .
Top

CHARACTER GetKeys ()

Purpose: Returns an array of the key names in this registry.
Returns CHARACTER
character[] The key values. Indeterminate array if empty.
Top

LOGICAL Has (character)

Purpose: Indicates whether a content type is registered or not.
Parameters:
pcTypeKey CHARACTER
Returns LOGICAL
logical True if the content type is registered
Top

LOGICAL Put (character, Class)

Purpose: Registers type for a key
Parameters:
pcTypeKey CHARACTER
poType Progress.Lang.Class
Returns LOGICAL
logical True if the type was previously registered
Top

PutAll (BuilderRegistry)

/* Adds the contents of one registry to another. THis is an overwite
operation (ie existing maps are overwritten; new ones added)
Call Clear() to delete nefore additions.
Parameters:
poRegistry OpenEdge.Core.Util.BuilderRegistry
Top

LOGICAL Remove (character)

Purpose: Deregisters a content type writer
Parameters:
pcTypeKey CHARACTER
Returns LOGICAL
logical True if the content type was previously registered


Constructor Detail
Top

BuilderRegistry ()

Purpose: Default constructor
Top

BuilderRegistry (BuilderRegistry)

Purpose: Constructor
Creates clone of the input registry into the current one.
Parameters:
poRegistry OpenEdge.Core.Util.BuilderRegistry
Top

BuilderRegistry (Class)

Purpose: Constructor
(via IsA() ).
Parameters:
poValueType Progress.Lang.Class


Property Detail
Top

INTEGER Size

/* Returns the number of mappings in this map.
Returns INTEGER
Top

Progress.Lang.Class ValueType

Purpose: (optional) The type of the registered Type (defaults to PLO)
Returns Progress.Lang.Class


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7