T - the generic type of the model objectpublic class ChainingModel<T> extends Object implements de.alpharogroup.model.api.ChainableModel<T>
ChainingModel is the default implementation of ChainableModel
interface.AbstractPropertyModel,
Serialized Form| Constructor and Description |
|---|
ChainingModel(Object target)
Instantiates a new
ChainingModel. |
| Modifier and Type | Method and Description |
|---|---|
void |
attach() |
void |
detach()
Unsets this property model's instance variables and detaches the model.
|
de.alpharogroup.model.api.Model<?> |
getChainedModel() |
T |
getObject() |
protected Object |
getTarget() |
void |
setChainedModel(de.alpharogroup.model.api.Model<?> model) |
void |
setObject(T object) |
protected ChainingModel<T> |
setTarget(Object modelObject)
Sets a new target - object or model.
|
String |
toString() |
public ChainingModel(Object target)
ChainingModel.target - the target objectpublic void attach()
attach in interface de.alpharogroup.model.api.Attachablepublic void detach()
detach in interface de.alpharogroup.model.api.Detachablepublic de.alpharogroup.model.api.Model<?> getChainedModel()
getChainedModel in interface de.alpharogroup.model.api.ChainableModel<T>public T getObject()
getObject in interface de.alpharogroup.model.api.Model<T>protected final Object getTarget()
public void setChainedModel(de.alpharogroup.model.api.Model<?> model)
setChainedModel in interface de.alpharogroup.model.api.ChainableModel<T>public void setObject(T object)
setObject in interface de.alpharogroup.model.api.Model<T>protected final ChainingModel<T> setTarget(Object modelObject)
modelObject - the model objectCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.