Class BmChoiceParameterLinksModel
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<ChoiceParameterLink>
com._1c.g5.v8.dt.md.ui.aef.models.BmChoiceParameterLinksModel
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfListAttribute<ChoiceParameterLink,
,IBmObject> IList<ChoiceParameterLink>
,IValidable
,IModelApiAwareModel
,IMdChoiceParameterLinksModel
,IAttributeProvider<Field>
,IChoiceParameterLinksModel<ChoiceParameterLink,
,Field> Iterable<ChoiceParameterLink>
,Collection<ChoiceParameterLink>
,List<ChoiceParameterLink>
public class BmChoiceParameterLinksModel
extends BmList<ChoiceParameterLink>
implements IMdChoiceParameterLinksModel
The model for Choice parameter links feature of MD attributes.
-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.md.ui.aef.models.IMdChoiceParameterLinksModel
ALL_FIELDS_CONTENT_PROVIDER, FILTER_PREFIX_EN, FILTER_PREFIX_RU
-
Constructor Summary
ConstructorsConstructorDescriptionBmChoiceParameterLinksModel
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project) The constructor.BmChoiceParameterLinksModel
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IAttributeProvider<Field> attributeProvider) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
areAttributesEqual
(Field attribute1, Field attribute2) Checks if two given attributes are equal.Returns a collection of attributes.Returns the type description.Returns the V8 project backing the model.toAttribute
(ChoiceParameterLink choiceParameterLink) Extracts the attribute from a given choice parameter link.Creates a new choice parameter link based on a given attribute.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.list.IList
addListListener, createWorkingCopy, fill, isEqual, removeListListener
Methods inherited from interface com._1c.g5.v8.dt.md.ui.aef.models.IMdChoiceParameterLinksModel
getAllowedParameterNames, getScriptVariant
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
-
BmChoiceParameterLinksModel
public BmChoiceParameterLinksModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project, IAttributeProvider<Field> attributeProvider) The constructor.- Parameters:
object
- Model object, cannot benull
.feature
- Object feature, cannot benull
.v8project
- the V8 project, cannot benull
.attributeProvider
- theIAttributeProvider
, cannot benull
.
-
BmChoiceParameterLinksModel
public BmChoiceParameterLinksModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project) The constructor.- Parameters:
object
- Model objectfeature
- Object featurev8project
- the V8 project, cannot benull
-
-
Method Details
-
getAttributes
Description copied from interface:IAttributeProvider
Returns a collection of attributes.- Specified by:
getAttributes
in interfaceIAttributeProvider<Field>
- Returns:
- Collection of attributes
-
getV8project
Description copied from interface:IMdChoiceParameterLinksModel
Returns the V8 project backing the model.- Specified by:
getV8project
in interfaceIMdChoiceParameterLinksModel
- Returns:
- the V8 project, never
null
.
-
toAttribute
Description copied from interface:IChoiceParameterLinksModel
Extracts the attribute from a given choice parameter link.- Specified by:
toAttribute
in interfaceIChoiceParameterLinksModel<ChoiceParameterLink,
Field> - 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<ChoiceParameterLink,
Field> - 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<ChoiceParameterLink,
Field> - Parameters:
attribute1
- The first attributeattribute2
- The second attribute- Returns:
true
if the attributes are equal andfalse
otherwise
-
getTypeDescription
Description copied from interface:IMdChoiceParameterLinksModel
Returns the type description.- Specified by:
getTypeDescription
in interfaceIMdChoiceParameterLinksModel
- Returns:
- the type description, never
null
.
-