18.1 Scripting API - Introduction..............................................................367
18.2 JavaScript Reference......................................................................368
Language concepts.....................................................................368
Built-in types and objects............................................................371
Built-in functions......................................................................388
Built-in operators......................................................................390
Declarations.............................................................................398
Control statements.....................................................................400
18.3 Utility module..............................................................................408
Text encoding...........................................................................408
ByteArray class...........................................................................410
File class...................................................................................412
Dir class....................................................................................417
Process class..............................................................................422
18.4 XML module.................................................................................426
Node class................................................................................426
Document class..........................................................................427
Element class............................................................................429
Text class.................................................................................430
Comment class...........................................................................431
Attr class...................................................................................431
List classes: NodeList, AttrList.........................................................431
18.5 Network module...........................................................................432
SOAP class.................................................................................432
18.6 Database module.........................................................................438
Text encoding...........................................................................438
DataSource class........................................................................440
Statement class..........................................................................441
18.7 Flow element module....................................................................444
Entry points..............................................................................444
Environment class......................................................................449
Switch class..............................................................................458
Connection class........................................................................462
Job class..................................................................................463
Occurrence class.........................................................................474
List classes: ConnectionList, JobList.................................................476
18.8 Metadata module.........................................................................476
Map class.................................................................................476
Dataset class..............................................................................477
XML data model.........................................................................478
JDF data model..........................................................................479
XMP data model.........................................................................481
Opaque data model...................................................................486
9
Contents