getOidStringForObject

getOidStringForObject(obj: Object): String;

The getOidStringForObject method of the Object class returns a string format of the object identifier (oid) specified in the obj parameter.

This method is the inverse of the String primitive type asOid method.

The formats of the object id for shared and exclusive references are listed in the following table.

Type of Reference Format Example
Shared class-id.instance-id "305.1208"
Exclusive class-id.instance-id.parent-class-id.sublevel.sub-id "66.101.305.2.1"

For details about returning a string of a specified object as an oid-like string based on class numbers and a following optional lifetime indication, see the Object class getObjectStringForObject method.