O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces

Attribute

The Attribute interface contains one or more values associated with an attribute name contained within a named object.

add
public void add(int position, Object value)
public boolean add(Object value)

Adds a new value to the list of attribute values. If you don't specify a position for the value, the value is added to the list only if there is not a duplicate value in the list. The method returns true if the value is added. If you specify a position for the value, it is added regardless of whether there is a duplication.

clear
public void clear()

Removes all the values from the value list.

contains
public boolean contains(Object value)

Returns true if the value list already contains the specified value.

 get public Object ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required