Namespace: OpenEdge.Net
Class
FileTypeRegistry
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object

/*
File:FileTypeRegistry
Purpose:Stores mappings from file extension to mime type
Author(s):mbanks
Created:Thu May 19 16:01:33 EDT 2016




Method Summary
Options Name Purpose
Clear () /** Clears all the entries from this registry */
CHARACTER Get (character) /** Returns a registered type, if it exists. returns null otherwise. @param character The name of the content type to register @return character 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 */
InitializeRegistry (FileTypeRegistry) /** Adds initial values into the registry @param BuilderRegistry The registry to populate */
LOGICAL Put (character, character) /** Registers type for a key @param character The key of the file extension to register @param character The mime type of the file content for a file with the extension @return logical True if the type was previously registered */
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
FileTypeRegistry () /** Default constructor */

Property Summary
Options Name Purpose
OpenEdge.Net.FileTypeRegistry Registry
INTEGER Size /* Returns the number of mappings in this map.*/


Method Detail
Top

Clear ()

Purpose: Clears all the entries from this registry
Top

CHARACTER Get (character)

Purpose: Returns a registered type, if it exists. returns null otherwise.
Parameters:
pcExtensionKey CHARACTER
Returns CHARACTER
character 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:
pcExtensionKey CHARACTER
Returns LOGICAL
logical True if the content type is registered
Top

InitializeRegistry (FileTypeRegistry)

Purpose: Adds initial values into the registry
Parameters:
poRegistry OpenEdge.Net.FileTypeRegistry
Top

LOGICAL Put (character, character)

Purpose: Registers type for a key
Parameters:
pcExtensionKey CHARACTER
pcMimeType CHARACTER
Returns LOGICAL
logical True if the type was previously registered
Top

LOGICAL Remove (character)

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


Constructor Detail
Top

FileTypeRegistry ()

Purpose: Default constructor


Property Detail
Top

OpenEdge.Net.FileTypeRegistry Registry

Returns OpenEdge.Net.FileTypeRegistry
Top

INTEGER Size

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


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7