Interface ITypeLinkModel<T extends AbstractTypeLink,​U>

    • 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 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