Microsoft SDK for Java

setAttribute

This method of the ElementImpl class contains the following signatures:

setAttribute(String name, Object value)
setAttribute(Name attrName, Object value)

setAttribute(String name, Object value)

Sets the attribute of this element.

Syntax

public void setAttribute(String name, Object value);

Return Value

Returns the previous value, if any.

Parameters

name The attribute name.
value The attribute value.

setAttribute(Name attrName, Object value)

Sets the attribute of this element.

Syntax

public void setAttribute(Name attrName, Object value);

Parameters

attrName The attribute name.
value The attribute value.

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