OpenEdge.Core.Util.TokenResolver
- Last Updated: January 15, 2026
- 7 minute read
- OpenEdge
- Documentation
|
Method Summary
| Options | Name | Purpose | |
|---|---|---|---|
| OpenEdge.Core.Util.Token Parse (character) |
/* Extracts any tokens from a string, and returns them as an array of token objects
@param character The string potentially containing tokens
@return Token[] An array of tokens. May be indeterminate in size if there are no tokens. */
|
||
| CHARACTER Resolve (character) |
/* Resolves any tokens in the file name into appropriate values
@param character The source string
@return character The resolved string */
|
||
| CHARACTER ResolveError (character, Error) |
/* Resolves a ERR-based token arg, based on the type/logger name given
@param character The token argument for ${ERR.*} tokens
@param Progress.Lang.Error The error/exception to resolve
@return character The resolved string */
|
||
| CHARACTER ResolveName (character, character) |
/* Resolves a NAME-based token arg, based on the type/logger name given
@param character The token argument for ${NAME.*} tokens
@param character The (type) name to resolve
@return character The resolved string */
|
||
| CHARACTER ResolveSession (character, character) |
/* Resolves a session value: using an attribute of the SESSION handle.
@param character The token argument for ${SESSION.*} tokens
@param character Context for the session token resolution
@return character The resolved string */
|
||
| CHARACTER ResolveTime (character, character[12], character[12], character[7], character[7], datetime-tz) |
/* Resolves a time-based token arg, based on the timestamp given
@param character The token argument for ${T.*} tokens
@param character[12] The long-form month names (ie January)
@param character[12] The short-form month names (ie Jan)
@param character[7] The long-form weekday names (ie Thursday)
@param character[7] The short-form weekday names (ie Thurs)
@param datetime-tz The timestamp to use to resolve the token
@return character The resolved string */
|
||
| CHARACTER ResolveTime (character, datetime-tz) |
/* Resolves a time-based token arg, based on the timestamp given
@param character The token argument for ${T.*} tokens
@param datetime-tz The timestamp to use to resolve the token
@return character The resolved string */
|
||
| CHARACTER ResolveToken (character, character, Object) |
/* Resolves a single token into appropriate values, optionally using some input context
@param character (required) The token group
@param character (optional) The token argument
@param Progress.Lang.Object (optional) Context used to resolve the token. eg a TimeStamp for times
@return character The token value. Returns the UNKNOWN value if the token cannot be resolved */
|
||
| ResolveToken (Token, Object) |
/* Resolves a single token into appropriate values, optionally using some input context
@param Token (required) The token
@param Progress.Lang.Object (optional) Context used to resolve the token. eg a TimeStamp for times */
|
||
| CHARACTER ResolveUser (character, handle) |
/* Resolves a CP-based token arg, based on the client-principal.
It is the CALLER's responsibility to clean up the C-P object represented by this handle
@param character The token argument for ${CP.*} tokens
@param handle A user represented by a client-principal
@return character The resolved string */
|
||
| CHARACTER SplitTokenArg (character) |
/** Splits a .-delimited token argument into an array
@param character the token argument to return
@return character[] An array of character. If the input arg is empty/null we return a [1] array */
|
Event Summary
| Options | Name | Purpose | |
|---|---|---|---|
| TokenResolved (Object, TokenResolverEventArgs) |
/* Event published after a token is resolved by this resolver. Allows a listener to override the value */
|
Property Summary
| Options | Name | Purpose | |
|---|---|---|---|
| CHARACTER MONTH_LONG |
|
||
| CHARACTER MONTH_SHORT |
|
||
| CHARACTER WEEKDAY_LONG |
|
||
| CHARACTER WEEKDAY_SHORT |
|
Method Detail
OpenEdge.Core.Util.Token Parse (character)
|
||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CHARACTER Resolve (character)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveError (character, Error)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveName (character, character)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveSession (character, character)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveTime (character, character[12], character[12], character[7], character[7], datetime-tz)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveTime (character, datetime-tz)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveToken (character, character, Object)
|
||||||||||||||||||||||||||||||||||||
ResolveToken (Token, Object)
|
||||||||||||||||||||||||||||||||||||
CHARACTER ResolveUser (character, handle)
|
||||||||||||||||||||||||||||||||||||
CHARACTER SplitTokenArg (character)
|
||||||||||||||||||||||||||||||||||||
Event Detail
TokenResolved (Object, TokenResolverEventArgs)
|
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Property Detail
CHARACTER MONTH_LONG
|
||||||||
|---|---|---|---|---|---|---|---|---|
CHARACTER MONTH_SHORT
|
||||||||
CHARACTER WEEKDAY_LONG
|
||||||||
CHARACTER WEEKDAY_SHORT
|
||||||||