Package com._1c.g5.v8.dt.ui.aef.models
Interface IChoiceParameterLinksModel<T extends AbstractChoiceParameterLink,U>
- Type Parameters:
T
- Type of choice parameter links in the list provided by the modelU
- Type of the attributes provided by the model
- All Superinterfaces:
Collection<T>
,IAttributeProvider<U>
,IList<T>
,IModel
,Iterable<T>
,IValidable
,List<T>
- All Known Subinterfaces:
IFormChoiceParameterLinksModel
,IMdChoiceParameterLinksModel
- All Known Implementing Classes:
BmChoiceParameterLinksModel
,EmfChoiceParameterLinksModel
,FormBmChoiceParameterLinksModel
,StandardObjectChoiceParameterLinksModel
public interface IChoiceParameterLinksModel<T extends AbstractChoiceParameterLink,U>
extends IList<T>, IAttributeProvider<U>
The contract for Choice parameter links models.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areAttributesEqual
(U attribute1, U attribute2) Checks if two given attributes are equal.Returns the collection of allowed parameter names.Returns the script variant used in the model.toAttribute
(T choiceParameterLink) Extracts the attribute from a given choice parameter link.Creates a new choice parameter link based on a given attribute.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com._1c.g5.v8.dt.ui.aef.models.IAttributeProvider
getAttributes
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
-
Method Details
-
getScriptVariant
ScriptVariant getScriptVariant()Returns the script variant used in the model.- Returns:
- Script variant
-
getAllowedParameterNames
Collection<String> getAllowedParameterNames()Returns the collection of allowed parameter names.- Returns:
- Collection of allowed parameter names
-
toAttribute
Extracts the attribute from a given choice parameter link.- Parameters:
choiceParameterLink
- Choice parameter link to extract the attribute from- Returns:
- The attribute
-
toLink
Creates a new choice parameter link based on a given attribute.- Parameters:
attribute
- Attribute which will be used in the created choice parameter link- Returns:
- A new choice parameter link
-
areAttributesEqual
Checks if two given attributes are equal.- Parameters:
attribute1
- The first attributeattribute2
- The second attribute- Returns:
true
if the attributes are equal andfalse
otherwise
-