Package com._1c.g5.v8.dt.ui.aef.models
Interface ITypeLinkModel<T extends AbstractTypeLink,U>
- Type Parameters:
T
- The type of the Type link modelU
- The type of the attributes provided by the model
- All Superinterfaces:
IAttributeProvider<U>
,IModel
,IValidable
,IValue<T>
- All Known Subinterfaces:
IFormTypeLinkModel
,IMdTypeLinkModel
- All Known Implementing Classes:
BmMdTypeLinkModel
,EmfMdTypeLinkModel
,FormBmTypeLinkModel
,StandardObjectTypeLinkModel
public interface ITypeLinkModel<T extends AbstractTypeLink,U>
extends IValue<T>, IAttributeProvider<U>
The contract for type link models.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areAttributesEqual
(U attribute1, U attribute2) Checks if two given attributes are equal.createTypeLink
(U attribute, int linkItem) Returns a new instance of type link initialized by a given attribute and a link itemtoAttribute
(T typeLink) Extracts the attribute from a given type link.Methods inherited from interface com._1c.g5.v8.dt.ui.aef.models.IAttributeProvider
getAttributes
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
-
Method Details
-
toAttribute
Extracts the attribute from a given type link.- Parameters:
typeLink
- Type link- Returns:
- The attribute contained in the type 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
-
createTypeLink
Returns a new instance of type link initialized by a given attribute and a link item- Parameters:
attribute
- Attribute for the type linklinkItem
- Link item for the type link- Returns:
- A new type link instance
-