|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xulux.dataprovider.bean.BeanMapping
public class BeanMapping
Contains the the Bean to Name mapping Every field in the mapping is represented by a BeanField
Nested Class Summary | |
---|---|
static class |
BeanMapping.FieldList
Inner ArrayList with an overriden indexOf Which checks equals on the object In the arraylist instead of the object passed |
Constructor Summary | |
---|---|
BeanMapping()
Constructor for BeanMapping. |
|
BeanMapping(java.lang.String name)
Creates a BeanMapping with the specified name |
Method Summary | |
---|---|
void |
addField(org.xulux.api.dataprovider.IField f)
Adds a field to the mapping |
org.xulux.api.dataprovider.IField |
createField(java.lang.Object object)
Creates a beanfield based on the passed name If no beanField can be created based on the name null will be returned. |
void |
discover()
Will discover the fields in the bean. |
void |
discover(java.lang.String field)
Discovers a specific field, and ads it to the cache. |
boolean |
equals(java.lang.Object object)
|
java.lang.Class |
getBean()
Returns the bean. |
org.xulux.api.dataprovider.IDataProvider |
getDataProvider()
|
org.xulux.api.dataprovider.IField |
getField(java.lang.Object f)
This method will also search aliases of the field. |
java.util.List |
getFields()
|
java.lang.String |
getName()
|
java.lang.Object |
getValue(java.lang.String field,
java.lang.Object object)
|
boolean |
isDiscovery()
Returns the discovery. |
void |
setBean(java.lang.Class bean)
Sets the bean. |
void |
setDataProvider(BeanDataProvider dataProvider)
Set the dataprovider. |
void |
setDiscovery(boolean discovery)
Sets the discovery. |
void |
setName(java.lang.String name)
Sets the BeanMapping name. |
void |
setProperty(java.lang.String name,
java.lang.String value)
|
java.lang.Object |
setValue(java.lang.String field,
java.lang.Object object,
java.lang.Object value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanMapping()
public BeanMapping(java.lang.String name)
name
- - the beanMapping nameMethod Detail |
---|
public java.lang.String getName()
getName
in interface org.xulux.api.dataprovider.IMapping
public void setName(java.lang.String name)
name
- The name to setpublic java.lang.Class getBean()
public void setBean(java.lang.Class bean)
bean
- The bean to setpublic boolean isDiscovery()
public void setDiscovery(boolean discovery)
discovery
- The discovery to setpublic org.xulux.api.dataprovider.IField createField(java.lang.Object object)
createField
in interface org.xulux.api.dataprovider.IMapping
name
- - the name of the field methods to discover.
public void addField(org.xulux.api.dataprovider.IField f)
addField
in interface org.xulux.api.dataprovider.IMapping
f
- - the fieldpublic java.util.List getFields()
getFields
in interface org.xulux.api.dataprovider.IMapping
public org.xulux.api.dataprovider.IField getField(java.lang.Object f)
getField
in interface org.xulux.api.dataprovider.IMapping
org.xulux.dataprovider.IMapping#getField(java.lang.Object)
public void discover()
public void discover(java.lang.String field)
field
- the field to discoverpublic boolean equals(java.lang.Object object)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.Object setValue(java.lang.String field, java.lang.Object object, java.lang.Object value)
setValue
in interface org.xulux.api.dataprovider.IMapping
org.xulux.dataprovider.IMapping#setValue(java.lang.String, java.lang.Object, java.lang.Object)
public java.lang.Object getValue(java.lang.String field, java.lang.Object object)
getValue
in interface org.xulux.api.dataprovider.IMapping
org.xulux.dataprovider.IMapping#getValue(java.lang.String, java.lang.Object)
public void setDataProvider(BeanDataProvider dataProvider)
dataProvider
- the dataproviderpublic org.xulux.api.dataprovider.IDataProvider getDataProvider()
getDataProvider
in interface org.xulux.api.dataprovider.IMapping
IMapping.getDataProvider()
public void setProperty(java.lang.String name, java.lang.String value)
setProperty
in interface org.xulux.api.dataprovider.IMapping
IMapping.setProperty(java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |