org.jdesktop.dataset.adapter
Class MetaDataProviderAdapter

java.lang.Object
  extended by org.jdesktop.dataset.adapter.MetaDataProviderAdapter
All Implemented Interfaces:
MetaDataProvider

public class MetaDataProviderAdapter
extends java.lang.Object
implements MetaDataProvider

Author:
rbair

Constructor Summary
MetaDataProviderAdapter(DataTable table)
          Creates a new instance of MetaDataProviderAdapter
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataProviderAdapter

public MetaDataProviderAdapter(DataTable table)
Creates a new instance of MetaDataProviderAdapter

Method Detail

getFieldCount

public int getFieldCount()
Specified by:
getFieldCount in interface MetaDataProvider
Returns:
integer containing the number of contained MetaData

getFieldNames

public final java.lang.String[] getFieldNames()
Description copied from interface: MetaDataProvider
Note: if the type for id is changed to Object type this will have to change to returning Object[].

Specified by:
getFieldNames in interface MetaDataProvider
Returns:
array containing the names of all data fields in this map

getMetaData

public final MetaData[] getMetaData()
Description copied from interface: MetaDataProvider
convenience to return all MetaData.

Specified by:
getMetaData in interface MetaDataProvider
Returns:

getMetaData

public MetaData getMetaData(java.lang.String dataID)
Description copied from interface: MetaDataProvider
Note: String will likely be converted to type Object for the ID

Specified by:
getMetaData in interface MetaDataProvider
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


Copyright © 2005 Sun Microsystems All Rights Reserved.