Class FormBmTypeLinkModel
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.form.internal.ui.properties.models.FormBmValue<FormTypeLink,InputFieldExtInfo>
com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmTypeLinkModel
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<FormTypeLink,
,IBmObject> IValue<FormTypeLink>
,IValidable
,IModelApiAwareModel
,IFormTypeLinkModel
,IFormValue<FormTypeLink,
,InputFieldExtInfo> IAttributeProvider<AbstractDataPath>
,ITypeLinkModel<FormTypeLink,
AbstractDataPath>
public class FormBmTypeLinkModel
extends FormBmValue<FormTypeLink,InputFieldExtInfo>
implements IFormTypeLinkModel
The
IFormTypeLinkModel
implementation.-
Constructor Summary
ConstructorsConstructorDescriptionFormBmTypeLinkModel
(Form form, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IDataSourceInfoAssociationService associationService) Creates a new model. -
Method Summary
Modifier and TypeMethodDescriptionboolean
areAttributesEqual
(AbstractDataPath attribute1, AbstractDataPath attribute2) Checks if two given attributes are equal.createTypeLink
(AbstractDataPath attribute, int linkItem) Returns a new instance of type link initialized by a given attribute and a link itemReturns a collection of attributes.getDataPathRu
(AbstractDataPath engPath) toAttribute
(FormTypeLink typeLink) Extracts the attribute from a given type link.Methods inherited from class com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmValue
getForm, getSelection
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, createTask, 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.v8.dt.form.internal.ui.properties.models.IFormValue
getForm, getSelection
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
-
Constructor Details
-
FormBmTypeLinkModel
public FormBmTypeLinkModel(Form form, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IDataSourceInfoAssociationService associationService) Creates a new model.- Parameters:
form
- the form model, cannot benull
.object
- the form model object, cannot benull
.feature
- the feature of form model object, cannot benull
.v8project
- the V8 project, cannot benull
.associationService
- theIDataSourceInfoAssociationService
, cannot benull
.
-
-
Method Details
-
getScriptVariant
- Specified by:
getScriptVariant
in interfaceIFormTypeLinkModel
- Returns:
- current script variant.
-
getDataPathRu
- Specified by:
getDataPathRu
in interfaceIFormTypeLinkModel
- Parameters:
engPath
- the english data path.- Returns:
- the russian script variant equivalent.
-
getAttributes
Description copied from interface:IAttributeProvider
Returns a collection of attributes.- Specified by:
getAttributes
in interfaceIAttributeProvider<AbstractDataPath>
- Returns:
- Collection of attributes
-
toAttribute
Description copied from interface:ITypeLinkModel
Extracts the attribute from a given type link.- Specified by:
toAttribute
in interfaceITypeLinkModel<FormTypeLink,
AbstractDataPath> - Parameters:
typeLink
- Type link- Returns:
- The attribute contained in the type link
-
areAttributesEqual
Description copied from interface:ITypeLinkModel
Checks if two given attributes are equal.- Specified by:
areAttributesEqual
in interfaceITypeLinkModel<FormTypeLink,
AbstractDataPath> - Parameters:
attribute1
- The first attributeattribute2
- The second attribute- Returns:
true
if the attributes are equal andfalse
otherwise
-
createTypeLink
Description copied from interface:ITypeLinkModel
Returns a new instance of type link initialized by a given attribute and a link item- Specified by:
createTypeLink
in interfaceITypeLinkModel<FormTypeLink,
AbstractDataPath> - Parameters:
attribute
- Attribute for the type linklinkItem
- Link item for the type link- Returns:
- A new type link instance
-