Class FormBmChoiceParameterLinksModel
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.list.ListModel<T>
com._1c.g5.v8.dt.aef2.bm.models.BmList<T>
com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmList<FormChoiceParameterLink>
com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmChoiceParameterLinksModel
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfListAttribute<FormChoiceParameterLink,
,IBmObject> IList<FormChoiceParameterLink>
,IValidable
,IModelApiAwareModel
,IFormChoiceParameterLinksModel
,IFormList<FormChoiceParameterLink>
,IAttributeProvider<AbstractDataPath>
,IChoiceParameterLinksModel<FormChoiceParameterLink,
,AbstractDataPath> Iterable<FormChoiceParameterLink>
,Collection<FormChoiceParameterLink>
,List<FormChoiceParameterLink>
public class FormBmChoiceParameterLinksModel
extends FormBmList<FormChoiceParameterLink>
implements IFormChoiceParameterLinksModel
The
IFormChoiceParameterLinksModel
implementation.-
Constructor Summary
ConstructorsConstructorDescriptionFormBmChoiceParameterLinksModel
(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.Returns the collection of allowed parameter names.Returns a collection of attributes.getDataPathRu
(AbstractDataPath dataPath) Returns the Russian localization of a given datapath.Returns the script variant used in the model.toAttribute
(FormChoiceParameterLink choiceParameterLink) Extracts the attribute from a given choice parameter link.toLink
(AbstractDataPath attribute) Creates a new choice parameter link based on a given attribute.Methods inherited from class com._1c.g5.v8.dt.form.internal.ui.properties.models.FormBmList
getForm
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmList
adapt, createTask, dispose, getChange, getModelApi, getObject, getProperty, setModelApi, setObjectValue
Methods inherited from class com._1c.g5.aef2.models.list.ListModel
add, add, addAll, addAll, addListListener, clear, contains, containsAll, createWorkingCopy, discard, fill, get, getCommittedList, getUncommittedList, indexOf, isElementEqual, isEmpty, isEqual, iterator, lastIndexOf, listIterator, listIterator, notifyListChanged, queueNotifyListChanged, remove, remove, removeAll, removeListListener, retainAll, set, setCommittedList, setList, setUncommitedList, size, subList, toArray, toArray, 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, 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 java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com._1c.g5.aef2.models.IAttribute
getObject, getProperty
Methods inherited from interface com._1c.g5.aef2.models.list.IList
addListListener, createWorkingCopy, fill, isEqual, removeListListener
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 java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
FormBmChoiceParameterLinksModel
public FormBmChoiceParameterLinksModel(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
Description copied from interface:IChoiceParameterLinksModel
Returns the script variant used in the model.- Specified by:
getScriptVariant
in interfaceIChoiceParameterLinksModel<FormChoiceParameterLink,
AbstractDataPath> - Returns:
- Script variant
-
getDataPathRu
Description copied from interface:IFormChoiceParameterLinksModel
Returns the Russian localization of a given datapath.- Specified by:
getDataPathRu
in interfaceIFormChoiceParameterLinksModel
- Parameters:
dataPath
- English variant datapath- Returns:
- Russian variant equivalent
-
getAttributes
Description copied from interface:IAttributeProvider
Returns a collection of attributes.- Specified by:
getAttributes
in interfaceIAttributeProvider<AbstractDataPath>
- Returns:
- Collection of attributes
-
getAllowedParameterNames
Description copied from interface:IChoiceParameterLinksModel
Returns the collection of allowed parameter names.- Specified by:
getAllowedParameterNames
in interfaceIChoiceParameterLinksModel<FormChoiceParameterLink,
AbstractDataPath> - Returns:
- Collection of allowed parameter names
-
toAttribute
Description copied from interface:IChoiceParameterLinksModel
Extracts the attribute from a given choice parameter link.- Specified by:
toAttribute
in interfaceIChoiceParameterLinksModel<FormChoiceParameterLink,
AbstractDataPath> - Parameters:
choiceParameterLink
- Choice parameter link to extract the attribute from- Returns:
- The attribute
-
toLink
Description copied from interface:IChoiceParameterLinksModel
Creates a new choice parameter link based on a given attribute.- Specified by:
toLink
in interfaceIChoiceParameterLinksModel<FormChoiceParameterLink,
AbstractDataPath> - Parameters:
attribute
- Attribute which will be used in the created choice parameter link- Returns:
- A new choice parameter link
-
areAttributesEqual
Description copied from interface:IChoiceParameterLinksModel
Checks if two given attributes are equal.- Specified by:
areAttributesEqual
in interfaceIChoiceParameterLinksModel<FormChoiceParameterLink,
AbstractDataPath> - Parameters:
attribute1
- The first attributeattribute2
- The second attribute- Returns:
true
if the attributes are equal andfalse
otherwise
-