Microsoft SDK for Java

getObject

This method of the MetaObject Interface retrieves an object instance that matches the specified Category and Class objects. Either one (but not both) of the parameters can be null.

Syntax

public Object getObject(Category category, Class cls);

Return Value

Returns an object that matches the specified Category and Class; returns null if no matching object is available.

Parameters

category The Category of the requested object. If a null Category object is specified, the Category is derived from the name of the specified class.
cls The Class of the requested object. If a null Class is specified, the request is for any object in the specified category.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.