Convenience method for setting single-valued attributes.
Syntax
void
setAttribute
(
String
name
,
String
value
)
Parameters
-
name –
the name of the attribute
-
value –
the attribute's single value
Exceptions
-
IllegalStateException –
if called after the attributed object is marked read only