Interface ITypeLinkModel<T extends AbstractTypeLink,U>

Type Parameters:
T - The type of the Type link model
U - 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 Details

    • 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 attribute
      attribute2 - The second attribute
      Returns:
      true if the attributes are equal and false otherwise
    • createTypeLink

      T createTypeLink(U attribute, int linkItem)
      Returns a new instance of type link initialized by a given attribute and a link item
      Parameters:
      attribute - Attribute for the type link
      linkItem - Link item for the type link
      Returns:
      A new type link instance