Interface Item

Provides a mechanism for handling a set of Properties, each associated to a locally unique identifier. The interface is split into subinterfaces to enable a class to implement only the functionalities it needs.

Synopsis

Since

3.0

Inheritance Path.  com.itmill.toolkit.data.Item

addItemProperty(Object, Property)

Parameters

id

ID of the new Property

property

the Property to be added and associated with id

return

true if the operation succeeded, false if not

Exceptions

UnsupportedOperationException

if the operation is not supported.

Tries to add a new Property into the Item.

This functionality is optional.

getItemProperty(Object)

Parameters

id

identifier of the Property to get

return

the Property with the given ID or null

Gets the Property corresponding to the given Property ID stored in the Item. If the Item does not contain the Property, null is returned.

getItemPropertyIds()

Parameters

return

unmodifiable collection containing IDs of the Properties stored the Item

Gets the collection of IDs of all Properties stored in the Item.

removeItemProperty(Object)

Parameters

id

ID of the Property to be removed

return

true if the operation succeeded false if not

Exceptions

UnsupportedOperationException

if the operation is not supported.

Removes the Property identified by ID from the Item.

This functionality is optional.