|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DataItem interface provides identifying and descriptive information about a data item. Well-behaved InfoBus data producers always implement this interface on the top-level data item being exchanged. For multi-level data items, such as a Collection of data items, we recommend the implementation of DataItem for items at every level. This may not always be possible, so consumers should be prepared to use it if it is there, and degrade gracefully otherwise.
The data described by a data item is accessed through one of the Infobus access interfaces, which are implemented on the data item in addition to the DataItem interface:
Complex data typically should not be contained in the DataItem object, but in a location convenient for its producer.
Method Summary | |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns a property or metadata information about the item. |
InfoBusEventListener |
getSource()
Returns the source of the DataItem. |
void |
release()
Allows a producer to know when a consumer has finished using a data item. |
Method Detail |
public java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- the name of the property requested. Property names
must not contain the ‘*’ character.public InfoBusEventListener getSource()
public void release()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |