|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.bind.annotation.adapters.XmlAdapter<Bean,Model>
org.richfaces.cdk.xmlconfig.model.AdapterBase<Bean,Model>
public abstract class AdapterBase<Bean,Model>
| Constructor Summary | |
|---|---|
AdapterBase()
|
|
| Method Summary | ||
|---|---|---|
Bean |
createBean(java.lang.Class<? extends Bean> beanClass,
Model model)
This method creates adapter object and copies properties from model object to adapter. |
|
protected
|
createExtension(D destination)
|
|
protected Model |
createModelElement(java.lang.Class<? extends Model> modelClass,
Bean adapter)
|
|
protected abstract java.lang.Class<? extends Bean> |
getBeanClass(Model model)
Returns concrete bean class. |
|
protected abstract java.lang.Class<? extends Model> |
getModelClass(Bean bean)
Returns concrete model class |
|
Bean |
marshal(Model model)
|
|
protected void |
postMarshal(Model model,
Bean bean)
Template method to copy non bean attributes. |
|
protected void |
postUnmarshal(Bean bean,
Model model)
Template method to copy non bean attributes |
|
Model |
unmarshal(Bean bean)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdapterBase()
| Method Detail |
|---|
public Bean marshal(Model model)
throws CdkException
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<Bean,Model>CdkException
public Bean createBean(java.lang.Class<? extends Bean> beanClass,
Model model)
throws CdkException
This method creates adapter object and copies properties from model object to adapter.
beanClass - adapter class.model - model object class.
CdkException
protected void postMarshal(Model model,
Bean bean)
Template method to copy non bean attributes.
model - bean - protected abstract java.lang.Class<? extends Bean> getBeanClass(Model model)
Returns concrete bean class.
model -
public Model unmarshal(Bean bean)
throws CdkException
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<Bean,Model>CdkException
protected <D,E extends ConfigExtension> E createExtension(D destination)
throws java.lang.NoSuchMethodException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
protected Model createModelElement(java.lang.Class<? extends Model> modelClass,
Bean adapter)
protected void postUnmarshal(Bean bean,
Model model)
Template method to copy non bean attributes
bean - model - protected abstract java.lang.Class<? extends Model> getModelClass(Bean bean)
Returns concrete model class
bean -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||