| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataProvider
The dataprovider interface.
| Method Summary | |
|---|---|
 void | 
addMapping(IMapping mapping)
Add a mapping to the dataprovider  | 
 IMapping | 
createMapping(java.lang.Object object)
Create a new mapping for this dataprovider based on the object passed in.  | 
 IConverter | 
getConverter(java.lang.Object object)
Get the specified converter Converters are a special case : they are part of the core system of xulux and therefor in the interface.  | 
 IMapping | 
getMapping(java.lang.Object object)
 | 
 java.util.Map | 
getMappings()
 | 
 java.lang.Object | 
getValue(java.lang.Object mapping,
         java.lang.String field,
         java.lang.Object object)
A convenience method, so you can get values on the highest possible level  | 
 void | 
initialize()
After processing the dictionary xml files (so if all properties are set initialize is called to interpret the properties.  | 
 boolean | 
needsPartValue()
 | 
 void | 
setProperty(java.lang.String key,
            java.lang.String value)
Sets the properties of the driver.  | 
 java.lang.Object | 
setValue(java.lang.Object mapping,
         java.lang.String field,
         java.lang.Object object,
         java.lang.Object value)
A convenience method, so you can set values on the highest possible level  | 
| Method Detail | 
|---|
java.util.Map getMappings()
IMapping getMapping(java.lang.Object object)
object - the object. The dataprovider should determine what it accepts.
void setProperty(java.lang.String key,
                 java.lang.String value)
 <properties>
   <bean>org.xulux.dataprovider.ParameteredBean</bean>
    <fields>
      <field name="value"/>
    </fields>
 </properties>
 
 This xml will result in calls to setProperty like this :
 setProperty("bean", "org.xulux.dataprovider.ParameteredBean");
 setProperty("fields.field.name", "value");
key - the keyvalue - the valuevoid initialize()
void addMapping(IMapping mapping)
mapping - 
java.lang.Object setValue(java.lang.Object mapping,
                          java.lang.String field,
                          java.lang.Object object,
                          java.lang.Object value)
mapping - the mapping to use (could be a string or the current part / field value)field - the field name to useobject - the object to use. If null the provider will try to create the objectvalue - the value to set in the object
java.lang.Object getValue(java.lang.Object mapping,
                          java.lang.String field,
                          java.lang.Object object)
mapping - the mapping to use (could be a string or the current part / field value)field - the field name to useobject - the object to use. If null the provider will try to create the object
boolean needsPartValue()
IConverter getConverter(java.lang.Object object)
setProperty
object - the object to get the converter for
IMapping createMapping(java.lang.Object object)
object - the object to create the mapping from or for
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||