org.jdesktop.binding.metadata
Interface MetaDataProvider

All Known Subinterfaces:
DataModel, TabularDataModel
All Known Implementing Classes:
AbstractDataModel, DataModelAdapter, DataModelToTableModelAdapter, DefaultDataModel, DefaultMetaDataProvider, DefaultTableModelExt, JavaBeanDataModel, MetaDataProviderAdapter, TableModelExtAdapter, TabularDataModelAdapter

public interface MetaDataProvider

Interface for marking objects which can return MetaData instances for data objects.

Version:
1.0
Author:
Jeanette Winzenburg, Amy Fowler

Method Summary
 int getFieldCount()
           
 java.lang.String[] getFieldNames()
          Note: if the type for id is changed to Object type this will have to change to returning Object[].
 MetaData[] getMetaData()
          convenience to return all MetaData.
 MetaData getMetaData(java.lang.String dataID)
          Note: String will likely be converted to type Object for the ID
 

Method Detail

getFieldNames

java.lang.String[] getFieldNames()
Note: if the type for id is changed to Object type this will have to change to returning Object[].

Returns:
array containing the names of all data fields in this map

getFieldCount

int getFieldCount()
Returns:
integer containing the number of contained MetaData

getMetaData

MetaData getMetaData(java.lang.String dataID)
Note: String will likely be converted to type Object for the ID

Parameters:
dataID - String containing the id of the data object
Returns:
MetaData object which describes properties, edit constraints and validation logic for a data object

getMetaData

MetaData[] getMetaData()
convenience to return all MetaData.

Returns:


Copyright © 2005 Sun Microsystems All Rights Reserved.