Set the ``xlink:href`` of this file.
453
def url(self, url):
        
        if url is None:
            return
        el_FLocat = self._el.find('mets:FLocat', NS)
        if el_FLocat is None:
            el_FLocat = ET.SubElement(self._el, TAG_METS_FLOCAT)
        el_FLocat.set("{%s}href" % NS["xlink"], url)
679810
def add_link(self, **kwgs):
        
        self.links.append(kwgs)
        if kwgs.get('type') == 'text/javascript':
            if 'scripted' not in self.properties:
                self.properties.append('scripted')
358509
def file_link(self, instance):
        '''
            
        '''
        sfile = instance.file_upload
        if not sfile:
            return mark_safe('No file submitted by student.')
        else:
            return mark_safe('<a href="%s">%s</a><br/>(<a href="%s" target="_new">Preview</a>)' % (sfile.get_absolute_url(), sfile.basename(), sfile.get_preview_url()))
858385
def link(self, href, **kwargs):
        """"""
        return link.Link(dict(href=href, **kwargs), self.base_uri)
852468
def set_xlim(self, xlim):
        ''''''
        if self.xlim_pipe is not None and self.xlim != xlim:
            #print("send0: ", graph_count, xlim)
            try:
                self.xlim_pipe[0].send(xlim)
            except IOError:
                return False
            self.xlim = xlim
        return True
1367844
def href_name (txt):
    """"""
    name = u""
    endtag = a_end_search(txt)
    if not endtag:
        return name
    name = txt[:endtag.start()]
    if img_re.search(name):
        return image_name(name)
    return _unquote(name)
178218
private void addLinkedResource(FilePathMapping linkedResource) {
		linkedResources.add(linkedResource);
		if (parent != null) {
			parent.addLinkedResource(linkedResource);
		}
	}
705329
def AddSymbolicLink(self, path, linked_path):
    
    if self.file_system.FileEntryExistsByPath(path):
      raise ValueError('Path: {0:s} already set.'.format(path))

    self._AddParentDirectories(path)
    self.file_system.AddFileEntry(
        path, file_entry_type=definitions.FILE_ENTRY_TYPE_LINK,
        link_data=linked_path)
1200264
def add_link(app, pagename, templatename, context, doctree):
    """"""

    # we can only show the slidelink if we can resolve the filename
    context['show_slidelink'] = (
        app.config.slide_link_html_to_slides and
        hasattr(app.builder, 'get_outfilename')
    )

    if context['show_slidelink']:
        context['slide_path'] = slide_path(app.builder, pagename)
548982
def link(src, path):
    '''
    
    '''
    src = os.path.expanduser(src)

    if not os.path.isabs(src):
        raise SaltInvocationError('File path must be absolute.')

    try:
        os.link(src, path)
        return True
    except (OSError, IOError):
        raise CommandExecutionError('Could not create \'{0}\''.format(path))
    return False
403672
def link_file(filename, title = nil, anchor = nil) # rubocop:disable Lint/UnusedMethodArgument
      return filename.filename if CodeObjects::ExtraFileObject === filename
      filename
    end
1016807
def set_link(self, prop, value):
        
        # https://rdflib.readthedocs.io/en/stable/
        # URIRef == identifiers (urn, http, URI in general)
        # Literal == String or Number (can have a language)
        # BNode == Anonymous nodes (So no specific identifier)
        #		eg. BNode : Edition(MartialEpigrams:URIRef) ---has_metadata--> Metadata(BNode)
        if not isinstance(value, URIRef):
            value = URIRef(value)

        self.metadata.add(prop, value)
129611
def set_xattr(self, path, xattr_name, xattr_value, flag, **kwargs):
        
        kwargs['xattr.name'] = xattr_name
        kwargs['xattr.value'] = xattr_value
        response = self._put(path, 'SETXATTR', flag=flag, **kwargs)
        assert not response.content
8982
def link(self, var):
        
        assert self._dtype is not None or hasattr(var, 'dtype')
        self._link = var
        self.changed()
528562
def set_icon_file(self, filename, rel="icon"):
        
        mimetype, encoding = mimetypes.guess_type(filename)
        self.add_child("favicon", '<link rel="%s" href="%s" type="%s" />'%(rel, filename, mimetype))
125199
public function setAttributeHref($href)
    {
        if (strpos($href, 'http') !== false) {
            $this->attributes->addAttribute('href', $href);
        } elseif (strpos($href, 'javascript') !== false) {
            $this->attributes->addAttribute('href', $href);
        } elseif (strpos($href, '#') !== false) {
            $this->attributes->addAttribute('href', $href);
        } elseif (function_exists('base_url')) {
            $this->attributes->addAttribute('href', base_url($href));
        }

        return $this;
    }
732039
private function setLink($type, $title, $href)
    {
        $this->links[$type] = [
            'rel' => $type,
            'title' => $title,
            'href' => $href
        ];
    }