Namespace: Consultingwerk
Interface 
IJsonDateTypeFormatter Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:IJsonDateTypeFormatter
Purpose:Provides custom Json Date/DateTime/DateTime-TZ formatting
for the Json object mode.
Description:Workaround for the fact, that there is no actual standard
for date representation in Json and if may be required to provide
custom formatting based on the target system (e.g. JIRA)
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jan 25 23:34:14 CET 2013



Top Method Summary
Options Name Purpose
+ Add (JsonObject, character, date) Adds a ABL Date property to the JsonObject
+ Add (JsonObject, character, datetime) Adds a ABL Date property to the JsonObject
+ Add (JsonObject, character, datetime-tz) Adds a ABL Date property to the JsonObject
+ DATE GetDate (JsonObject, character) Returns the ABL Date value for a Json property
+ DATETIME GetDateTime (JsonObject, character) Returns the ABL DateTime value for a Json property
+ DATETIME-TZ GetDateTimeTz (JsonObject, character) Returns the ABL DateTime-TZ value for a Json property


Method Detail
Top

PUBLIC Add (JsonObject, character, date)

Purpose: Adds a ABL Date property to the JsonObject
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
pdtDate DATE
The date value
Top

PUBLIC Add (JsonObject, character, datetime)

Purpose: Adds a ABL Date property to the JsonObject
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
pdtDate DATETIME
The datetime value
Top

PUBLIC Add (JsonObject, character, datetime-tz)

Purpose: Adds a ABL Date property to the JsonObject
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
pdtDate DATETIME-TZ
The datetime-tz value
Top

PUBLIC DATE GetDate (JsonObject, character)

Purpose: Returns the ABL Date value for a Json property
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
Returns DATE
The resulting DATE value
Top

PUBLIC DATETIME GetDateTime (JsonObject, character)

Purpose: Returns the ABL DateTime value for a Json property
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
Returns DATETIME
The resulting DATETIME value
Top

PUBLIC DATETIME-TZ GetDateTimeTz (JsonObject, character)

Purpose: Returns the ABL DateTime-TZ value for a Json property
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
Returns DATETIME-TZ
The resulting DATETIME-TZ value


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:12:45