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:
IMdTypeLinkModel
- All Known Implementing Classes:
BmMdTypeLinkModel
,EmfMdTypeLinkModel
,StandardObjectTypeLinkModel
public interface ITypeLinkModel<T extends AbstractTypeLink,U> extends IValue<T>, IAttributeProvider<U>
The contract for type link models.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
areAttributesEqual(U attribute1, U attribute2)
Checks if two given attributes are equal.T
createTypeLink(U attribute, int linkItem)
Returns a new instance of type link initialized by a given attribute and a link itemU
toAttribute(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 Detail
-
toAttribute
U toAttribute(T typeLink)
Extracts the attribute from a given type link.- Parameters:
typeLink
- Type link- Returns:
- The attribute contained in the type link
-
areAttributesEqual
boolean areAttributesEqual(U attribute1, U attribute2)
Checks if two given attributes are equal.- Parameters:
attribute1
- The first attributeattribute2
- The second attribute- Returns:
true
if the attributes are equal andfalse
otherwise
-
-