Package com._1c.g5.v8.dt.aef2.bm.models
Class BmInlineTaskValue<T>
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.aef2.models.value.Value<T>
com._1c.g5.v8.dt.aef2.bm.models.BmValue<T>
com._1c.g5.v8.dt.aef2.bm.models.BmInlineTaskValue<T>
- Type Parameters:
T
- The model type
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<T,
,IBmObject> IValue<T>
,IValidable
,IModelApiAwareModel
A BM value with a supplier of custom
IBmTask
. This task will be used to apply changes to the model.-
Constructor Summary
ConstructorsConstructorDescriptionBmInlineTaskValue
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Function<T, IBmTask<?>> taskSupplier) Creates an instance of inline task BM value. -
Method Summary
Modifier and TypeMethodDescriptionprotected IModelApiTaskN<Void>
createTask
(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, T valueToApply) Creates anIModelApiTaskN
that executes during applying changes.Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, dispose, getChange, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi, setObjectValue
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
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, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, 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, discard, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
Constructor Details
-
BmInlineTaskValue
public BmInlineTaskValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Function<T, IBmTask<?>> taskSupplier) Creates an instance of inline task BM value.- Parameters:
object
- The objectfeature
- The object's featuretaskSupplier
- The BM task supplier: a function returning a BM task from the value which is to be applied
-
-
Method Details
-
createTask
protected IModelApiTaskN<Void> createTask(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, T valueToApply) Description copied from class:BmValue
Creates anIModelApiTaskN
that executes during applying changes.- Overrides:
createTask
in classBmValue<T>
- Parameters:
object
- the object to change, cannot benull
.feature
- the feature the feature to change, cannot benull
.valueToApply
- the value to apply.- Returns:
- the created
IModelApiTaskN
.
-