Namespace: Consultingwerk.Util
Class 
PropathHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:PropathHelper
Purpose:Supporting Methods for dealing with the PROPATH
Syntax:Static methods only, Protected constructor to disallow
instance creation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Dec 15 22:49:25 CET 2010



Top Method Summary
Options Name Purpose
# LOGICAL IsAbsoluteDirectory (character) Tests if the current directory name is absolute of relative
+ CHARACTER MakeAbsolute (character, character) Turns a relative propath into an absolute path
+ CHARACTER PropathDelimiter () Returns the propath delimiter for the current OS

Top Constructor Summary
Options Name Purpose
# PropathHelper () Disallow instance creation


Method Detail
Top

PROTECTED LOGICAL IsAbsoluteDirectory (character)

Purpose: Tests if the current directory name is absolute of relative
Notes: Absolute paths start with either a / (slash) or a double \\ (UNC)
or a letter followed by a colon

Parameters:
pcDirectory CHARACTER
The name of the directory to test
Returns LOGICAL
Logical value indicating if the directory is specified as an absolute path
Top

PUBLIC CHARACTER MakeAbsolute (character, character)

Purpose: Turns a relative propath into an absolute path
Notes:

Parameters:
pcBasePath CHARACTER
The relative path to be used as a base for relative references
pcPropath CHARACTER
The propath to make absolute
Returns CHARACTER
The propath with only absolute path references
Top

PUBLIC CHARACTER PropathDelimiter ()

Purpose: Returns the propath delimiter for the current OS
Notes: Accoording to the OpenEdge documentation, even UNIX sessions
use the comma as the propath delimiter from within the AVM so this
method is just left for backwards compatibility

Returns CHARACTER
The comma as the propath


Constructor Detail
Top

PROTECTED PropathHelper ()

Purpose: Disallow instance creation
Notes:



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