Microsoft SDK for Java

getAttribute

This method of the ElementImpl class contains the following signatures:

getAttribute(String name)
getAttribute(Name attrName)

getAttribute(String name)

Retrieves a named attribute's value.

Syntax

public Object getAttribute(String name);

Return Value

Returns the value of the attribute; returns null if the attribute is not found.

Parameters

name The name of the attribute.

getAttribute(Name attrName)

Retrieves a named attribute's value.

Syntax

public Object getAttribute(Name attrName);

Return Value

Returns the value of the attribute; returns null if the attribute is not found.

Parameters

name The name of the attribute.

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