MemberInfo.getAttribute

Overview | Methods | This Package | All Packages

MemberInfo.getAttribute

Retrieves the first attribute in the attributes collection of the specified type.

Syntax

public MemberAttribute getAttribute( Class attributeClass )

Parameters

attributeClass

The type of the attribute; for example, DefaultValueAttribute.class or LocalizableAttribute.class. (All attributes extend MemberAttribute.)

Return Value

Returns a MemberAttribute object that represents the attribute. If no attribute of the specified type is found, null is returned.

See Also   getCategory, getDescription, getHelpURL, getHelpTopic