Skip to main content
Skip table of contents

staticTypeOf() Operation

Syntax

set type = anyObject.staticTypeOf();

Semantics

Returns the type of any object it has had at compile-time. To get the type the object has at run-time, use the typeOf() Operation. typeOf() and staticTypeOf() may return the same type, though.

Substitutables

type

Can be any variable or object attribute having the type String.

Find a list of all build-in type strings on Type Strings. Other, e.g. model specific, types can be referenced via their path in the Service Panel, see example below.

anyObject

Can be any object.

Examples

Assume you have the following class structure:

A type Customer derives from a type Person and adds an additional attribute.

Now assume further you have an object of each class (aPerson and aCustomer) and the following action script:

NONE
set aPerson = aCustomer;

typeOfaPerson will be Customer:

NONE
set typeOfaPerson = aPerson.typeOf();

staticTypeOfaPerson will be Person, which is the type the object had originally been created with:

NONE
set staticTypeOfaPerson = aPerson.staticTypeOf();

Other, e.g. model specific, types can be referenced via their path in the Service Panel, e.g. a class Customer that has been defined in a package Service/Classes/Customer would have the following type string: "urn:Service.Classes.Customer".

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.