Class AddressingAttributeModel
- 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<Value>
-
- com._1c.g5.v8.dt.md.ui.aef.models.value.BmValueModel
-
- com._1c.g5.v8.dt.bp.scheme.ui.aef.models.AddressingAttributeModel
-
- All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>
,IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<Value,IBmObject>
,IValue<Value>
,IValidable
,IModelApiAwareModel
,IAddressingAttributeModel
,IValueModel
public class AddressingAttributeModel extends BmValueModel implements IAddressingAttributeModel
Implementation ofIAddressingAttributeModel
.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.md.ui.aef.models.value.BmValueModel
listener, typeDescriptionValue, typeItemValue
-
-
Constructor Summary
Constructors Constructor Description AddressingAttributeModel(SchemeItemAddressingAttribute addressingAttribute, IV8Project v8project, ISymbolicNameService symbolicNameService)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createTypeDescriptionModel(org.eclipse.emf.ecore.EStructuralFeature typeDescriptionFeature)
Creates type description source model.SchemeItemAddressingAttribute
getAddressingAttribute()
Returns addressing attribute.protected void
setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Value newValue)
Sets the new value of the provided model object feature during the commit.
The method is invoked within the task, so the given objects have the relevant state (e.g.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.value.BmValueModel
dispose, get, getColorProvider, getContextObject, getCurrentTypeItem, getFontProvider, getTypeDescription, getTypeItemModel, getV8project, initTypeItemModelExternal, isEqual, setComponent
-
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, createTask, getChange, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi
-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, getCommittedValue, getUncommittedValue, getValidatorTarget, 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, 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, dispose, 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
-
Methods inherited from interface com._1c.g5.v8.dt.md.ui.aef.models.value.IValueModel
convertTypeItemToValue, getObject
-
-
-
-
Constructor Detail
-
AddressingAttributeModel
public AddressingAttributeModel(SchemeItemAddressingAttribute addressingAttribute, IV8Project v8project, ISymbolicNameService symbolicNameService)
Constructor.- Parameters:
addressingAttribute
- - addressing attribute. Cannot benull
.v8project
- - objects project. Cannot benull
.symbolicNameService
- - symbolic name service. Cannot benull
.
-
-
Method Detail
-
getAddressingAttribute
public SchemeItemAddressingAttribute getAddressingAttribute()
Description copied from interface:IAddressingAttributeModel
Returns addressing attribute.- Specified by:
getAddressingAttribute
in interfaceIAddressingAttributeModel
- Returns:
- addressing attribute. Can't return
null
.
-
createTypeDescriptionModel
protected void createTypeDescriptionModel(org.eclipse.emf.ecore.EStructuralFeature typeDescriptionFeature)
Description copied from class:BmValueModel
Creates type description source model.- Overrides:
createTypeDescriptionModel
in classBmValueModel
- Parameters:
typeDescriptionFeature
- the type description source field
-
setObjectValue
protected void setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Value newValue)
Description copied from class:BmValue
Sets the new value of the provided model object feature during the commit.
The method is invoked within the task, so the given objects have the relevant state (e.g. attached to transaction).- Overrides:
setObjectValue
in classBmValue<Value>
- Parameters:
object
- the object to set new value, cannot benull
.feature
- the feture to set, cannot benull
.newValue
- the new value to set, can benull
.
-
-