You are on page 1of 16

Initial Scripting Submission O

O RTEL

Nortel Scripting Language


Initial Submission

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 1


Initial Scripting Submission O
O RTEL

Architectural Goals

• provide a scripting language for non-browser environments

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 2


Initial Scripting Submission O
O RTEL

Context for Submission


• definition of JavaScript

– JavaScript 1.1 as shipped with Netscape Navigator 3.0

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 3


Initial Scripting Submission O
O RTEL

Component-events
• what are componenet-events ? - assumptions

– always local - as distinct from Event Service

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 4


Initial Scripting Submission O
O RTEL

IDL Basic Types - 1


• IDL boolean

– IDL literals TRUE and FALSE map to JavaScript literals true and false

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 5


Initial Scripting Submission O
O RTEL

IDL Basic Types - 2


• IDL octet

– maps to JavaScript Number

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 6


Initial Scripting Submission O
O RTEL

Enum and Struct


• IDL enum type

– generates a JavaScript Array with String values for each enumeration element

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 7


Initial Scripting Submission O
O RTEL

Sequence and Array


• IDL sequence type

– maps to JavaScript “Array” ( typeof on the value will return “object”)

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 8


Initial Scripting Submission O
O RTEL

Union and Any


• IDL union type

– maps to JavaScript Object

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 9


Initial Scripting Submission O
O RTEL

Typedefs and Constants


• IDL typedefs

– typedefs are not made visible in JavaScript

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 10


Initial Scripting Submission O
O RTEL

Exceptions and Attributes


• IDL exceptions

– mapped as per IDL struct

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 11


Initial Scripting Submission O
O RTEL

Operations
• invoking an IDL operation maps onto creating a JavaScript Object

• the Object may be created by a constructor Function

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 12


Initial Scripting Submission O
O RTEL

Interfaces and Modules


• an IDL interface maps to a JavaScript Object of the same name

– prototype property is set to the JavaScript representation of CORBA::Object

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 13


Initial Scripting Submission O
O RTEL

Psuedo Objects - ORB


• ORB

– maps to a JavaScript (host) Object named CORBA_ORB

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 14


Initial Scripting Submission O
O RTEL

Psuedo Objects - Object and Policy


• Object

– maps to a JavaScript (host) Object named CORBA_Object

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 15


Initial Scripting Submission O
O RTEL

No Server-side Mapping
• it was an optional requirement anyway

• scripts are triggered by component-events

2nd Dec ‘97 Nortel - Proprietary orbos/97-11-37 - 16

You might also like