xxScreen

Analyses the input of a plain text input. This can be used for screen parsing logic implementation.

Constructor

var objScreen = new xxScreen(length);
  •  length : String,  number of max Characters per line


Properties

None

Methods

MethodDescription
ParseReturns the result of the screen analysis

 

Comments

Make sure that you'll get the maximum character or more otherwise the xxScreen Object interprets the tail as new line.

Example

How to use xxScreen object on an example text input:

var flatfile = "GetClientTC Obtain the Transaction Control Data (XML) sent by client\n";
flatfile +=    "SetClientResponse Set the XML response to be returned to client\n";
flatfile +=    "SetClientResponseTC Set the Transaction Control Data (XML) to be returned to client\n";
flatfile +=    "SetErrorResponse Set a non-XML error response as transaction result ";
flatfile +=    "that is returned to the client\n";
flatfile +=    "Decode Lookup a descriptive value by given code using XX/1";

var screen = new xxScreen(100);
var analyse = screen.Parse(flatfile);

See the XML of the analyse variable that is the result of the xxScreen.Parse from above example.