Product Site

5.1.4.6. defaultName

Returns a short human-readable string representation of the object. The exact form of this representation depends on the object and might not alone be sufficient to reconstruct the object. All objects must be able to produce a short string representation of themselves in this way, even if the object does not have a string value. See Section 4.2.11, “Required String Values” for more information. defaultName returns a string that identifies the class of the object, for example, an Array or a Directory.

See also methods objectName and string.

See objectName= for an example using defaultName.