Class EmfBasedGroupValue<T,O extends org.eclipse.emf.ecore.EObject>
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.aef2.models.pojo.PojoValue<T>
com._1c.g5.v8.dt.md.ui.aef.models.value.EmfBasedGroupValue<T,O>
- All Implemented Interfaces:
IAttribute<O,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<O>
,IModel
,IEmfValueAttribute<T,
,O> IValue<T>
,IValidable
,IModelApiAwareModel
public class EmfBasedGroupValue<T,O extends org.eclipse.emf.ecore.EObject>
extends PojoValue<T>
implements IEmfValueAttribute<T,O>, IModelApiAwareModel
The EMF based group model.
-
Constructor Summary
ConstructorsConstructorDescriptionEmfBasedGroupValue
(IEmfValueAttribute<T, O>... values) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
Commits the changes to the data model.void
dispose()
Disposes this model.Returns the model API.Returns the object that keeps the attribute.org.eclipse.emf.ecore.EStructuralFeature
Returns the property.void
setModelApi
(IModelApi modelApi) Sets the specified API to the model.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, 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, discard, getChange, 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
-
EmfBasedGroupValue
Creates a new instance.
-
-
Method Details
-
commit
public void commit()Description copied from interface:IModel
Commits the changes to the data model. -
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
getObject
Description copied from interface:IAttribute
Returns the object that keeps the attribute.- Specified by:
getObject
in interfaceIAttribute<T,
O extends org.eclipse.emf.ecore.EObject> - Returns:
- the object that keeps the attribute.
-
getProperty
public org.eclipse.emf.ecore.EStructuralFeature getProperty()Description copied from interface:IAttribute
Returns the property.- Specified by:
getProperty
in interfaceIAttribute<T,
O extends org.eclipse.emf.ecore.EObject> - Returns:
- the property.
-
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.
-
setModelApi
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-