Class StandardObjectSwitchingSourceModel<M extends IModel>
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel<M>
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
- Direct Known Subclasses:
StandardObjectMultilanguageModel
,StandardObjectSwitchingSourceList
,StandardObjectSwitchingSourceValue
public class StandardObjectSwitchingSourceModel<M extends IModel> extends EditableModel implements IModelApiAwareModel
The wrap-model for standard attributes models that switches sources (EMF/BM) automatically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<T extends IModel>
-
Constructor Summary
Constructors Constructor Description StandardObjectSwitchingSourceModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> emfModelCreator, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> bmModelCreator)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this model.IChange
getChange()
IModelApi
getModelApi()
Returns the model API.protected StandardObjectProxy
getProxy()
Returns the model standard attribute proxy object.protected M
getWrappedModel()
Returns the wrapped model.boolean
isOnline()
void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
StandardObjectSwitchingSourceModel
public StandardObjectSwitchingSourceModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> emfModelCreator, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> bmModelCreator)
The constructor.- Parameters:
proxy
- theStandardAttributeProxy
object, cannot benull
.object
- theEObject
instance, cannot benull
.feature
- the feature, cannot benull
.emfModelCreator
- the EMF modelStandardObjectSwitchingSourceModel.IStandardAttributeModelCreator
instance, cannot benull
.bmModelCreator
- the BM modelStandardObjectSwitchingSourceModel.IStandardAttributeModelCreator
instance, cannot benull
.
-
-
Method Detail
-
isOnline
public boolean isOnline()
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.
-
getChange
public IChange getChange()
-
setModelApi
public void setModelApi(IModelApi modelApi)
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
getModelApi
public IModelApi getModelApi()
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
getWrappedModel
protected M getWrappedModel()
Returns the wrapped model.- Returns:
- the wrapped model, never
null
.
-
getProxy
protected StandardObjectProxy getProxy()
Returns the model standard attribute proxy object.- Returns:
- the
StandardObjectProxy
instance, nevernull
.
-
-