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

Inherits: Progress.Lang.Object


Copyright (c) 2016-2019 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 .*/
  Progress.Lang.Class Get (Class) /** Returns a registered type, if it exists. returns null otherwise. @param Progress.Lang.Class The name of the key @return Progress.Lang.Class A valid value if it exists. Null otherwise .*/
  Progress.Lang.Class Get (Enum) /** Returns a registered type, if it exists. returns null otherwise. @param Progress.Lang.Enum The name of the key @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 Has (Class) /** Indicates whether a key is registered or not. @param Progress.Lang.Class The name of the key @return logical True if the content type is registered */
  LOGICAL Has (Enum) /** Indicates whether a key is registered or not. @param Progress.Lang.Enum The name of the key @return logical True if the content type is registered */
  LOGICAL Put (character, character) /** Registers type for a key @param character The key of the type to register @param character The type of the writer used to process that type @return logical True if the type was previously 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 */
  LOGICAL Put (Class, Class) /** Registers type for a key @param Progress.Lang.Class 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 */
  LOGICAL Put (Enum, Class) /** Registers type for a key @param Progress.Lang.Enum 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
  Progress.Lang.Class ValueType


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

Progress.Lang.Class Get (Class)

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

Progress.Lang.Class Get (Enum)

Purpose: Returns a registered type, if it exists. returns null otherwise.
Parameters:
pTypeKey Progress.Lang.Enum
 
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 Has (Class)

Purpose: Indicates whether a key is registered or not.
Parameters:
pTypeKey Progress.Lang.Class
 
Returns LOGICAL
  logical True if the content type is registered
Top

LOGICAL Has (Enum)

Purpose: Indicates whether a key is registered or not.
Parameters:
pTypeKey Progress.Lang.Enum
 
Returns LOGICAL
  logical True if the content type is registered
Top

LOGICAL Put (character, character)

Purpose: Registers type for a key
Parameters:
pTypeKey CHARACTER
 
pType CHARACTER
 
Returns LOGICAL
  logical True if the type was previously 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

LOGICAL Put (Class, Class)

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

LOGICAL Put (Enum, Class)

Purpose: Registers type for a key
Parameters:
pTypeKey Progress.Lang.Enum
 
pType 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 INTEGER
 
Top

Progress.Lang.Class ValueType

Returns Progress.Lang.Class