Version of GetObjectDetails. Instead of using classdef, allows an interfacedef to be specified. The rest is identical.