Namespace: Consultingwerk.Studio.ExtractClassAnnotations
Class 
ExtractClassAnnotationsJob Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:ExtractClassAnnotationsJob
Purpose:Parses ABL source code using proparse and writes annotations
to a JSON file to provide runtime access to the annotations
using the Consultingwerk.Framework.TypeDescriptor classes
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Jul 01 18:08:30 CEST 2015
Notes:https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094542/The+Annotation+based+Type+Descriptor



Top Method Summary
Options Name Purpose
# CopyAnnotations (ListAnnotation, ListSerializableAnnotation, character) Copies annotations from a ListAnnotations to a ListSerializableAnnotations
# LOGICAL OnlyDifferByTimeStamp (character, longchar) Returns if the new annotation JSON only differs by the annotation time stamp
# LONGCHAR RemoveTimeStamp (longchar) Removes the "TimeStamp" from the provided JSON document
+ Run (ExtractClassAnnotationsParameter) Extracts class annotations into .annotation files


Method Detail
Top

PROTECTED CopyAnnotations (ListAnnotation, ListSerializableAnnotation, character)

Purpose: Copies annotations from a ListAnnotations to a ListSerializableAnnotations
Notes:

Parameters:
poFrom Consultingwerk.Studio.ListAnnotation
The ListAnnotation to copy annotations from
poTo Consultingwerk.Framework.TypeDescriptor.ListSerializableAnnotation
The ListSerializableAnnotation to copy to
pcExclude CHARACTER
Annotations (including the @) to exclude from copy
Top

PROTECTED LOGICAL OnlyDifferByTimeStamp (character, longchar)

Purpose: Returns if the new annotation JSON only differs by the
annotation time stamp
Notes:

Parameters:
pcAnnotationFile CHARACTER
The existing file with the annotation
plcAnnotations LONGCHAR
The new annotations JSON document
Returns LOGICAL
Logical value indicating if the annotations do only differ by the time stamp node
Top

PROTECTED LONGCHAR RemoveTimeStamp (longchar)

Purpose: Removes the "TimeStamp" from the provided JSON document
Notes: "TimeStamp": "2016-10-18T16:23:49.472+02:00",

Parameters:
plcJson LONGCHAR
The input JSON Document
Returns LONGCHAR
The JSON Document with the time-stamp removed
Top

PUBLIC Run (ExtractClassAnnotationsParameter)

Purpose: Extracts class annotations into .annotation files
Notes:

Parameters:
poParameter Consultingwerk.Studio.ExtractClassAnnotations.ExtractClassAnnotationsParameter
The ExtractClassAnnotationsParameter with the data for this call


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