| java.lang.Object com.sun.data.provider.impl.ObjectFieldKeySupport
ObjectFieldKeySupport | public class ObjectFieldKeySupport (Code) | | Support class for
DataProvider implementations that need to
instrospect Java classes to discover properties (and optionally public
fields) and return
FieldKey instances for them.
|
ObjectFieldKeySupport | public ObjectFieldKeySupport(Class clazz, boolean includeFields)(Code) | | Construct a new support instance wrapping the specified class,
with the specified flag for including public fields.
WARNING - Instances of this class will not be
Serializable , so callers should not attempt to save
fields containing such instances.
Parameters: clazz - Class whose properties should be exposed Parameters: includeFields - Flag indicating whether public fields shouldalso be included |
getFieldKey | public FieldKey getFieldKey(String fieldId) throws DataProviderException(Code) | | Return the
FieldKey associated with the specified canonical
identifier, if any; otherwise, return null .
Parameters: fieldId - Canonical identifier of the required field |
isAssignable | public boolean isAssignable(FieldKey fieldKey, Object value) throws DataProviderException(Code) | | Return true if the specified value may be
successfully assigned to the specified field.
Parameters: fieldKey - FieldKey to check assignability for Parameters: value - Proposed value |
isReadOnly | public boolean isReadOnly(FieldKey fieldKey) throws DataProviderException(Code) | | Return the read only state of the field associated with the
specified
FieldKey , if it can be determined, otherwise,
return true .
Parameters: fieldKey - FieldKey to return read only state for |
|
|