staticTypeOf() Operation
Syntax |
NONE
| |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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. | ||||||||||||||||||
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 (
NONE
Find below a list of all Bridge Base Types together with their type string as returned by
Other, e.g. model specific, types can be referenced via their path in the containment tree, e.g. a class customer that has been defined in the UML package Services/TypeOperationsService/Classes/Customer would have the following type string: |
Related Pages: