classafAtom::Link
sys::Obj afAtom::Link
Defines a reference from an entry or feed to a Web resource. Link is patterned after html’s link element.
@see The atom:link Element
- href
Uri href(Required) The URI of the referenced resource (typically a Web page).
- hreflang
Str? hreflang(Optional) Indicates the language of the referenced resource.
- length
Int? length(Optional) The length of the resource, in bytes.
- make
new make(Uri href, Str rel := "alternate")Creates a
Linkwith the required fields.- rel
Str rel(Required) Contains the relationship type. It can be a full URI, or one of the following predefined values:
alternate: an alternate representation of the entry or feed, for example a permalink to the html version of the entry, or the front page of the weblog.enclosure: a related resource which is potentially large in size and might require special handling, for example an audio or video recording.related: an document related to the entry or feed.self: the feed itself.via: the source of the information provided in the entry.
- title
Str? title(Optional) Human readable information about the link, typically for display purposes.
- toXml
virtual XElem toXml()Creates a
<link>element.- type
MimeType? type(Optional) Indicates the media type of the resource.