'Return the link name, if exists for the given link DocType'

def get_link_for(self, link_doctype):

    for link in self.links:
        if (link.link_doctype == link_doctype):
            return link.link_name
    return None
