1 <?xml version="1.0" encoding="UTF-8"?>
2 <node xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0" name="/node">
8 <interface name="org.freedesktop.atspi.Hyperlink">
9 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
10 <p>Instances of Hyperlink are returned by Hypertext objects, and are
11 the means by which end users and clients interact with linked, and in
12 some cases embedded, content. Hyperlinks may have multiple "anchors",
13 where an anchor corresponds to a reference to a particular resource with
14 a corresponding resource identified (URI). Hyperlinks may be
15 queried for their URIs, or queried for the objects corresponding to their
16 anchors. The objects thus obtained are instances of Accessible,
17 and may be queried, and manipulated via the Action interface. </p>
19 <p>@note A Hyperlink implementor is normally NOT an Accessible;
20 the preferred usage is for a Hyperlink's associated "objects"
21 (accessed via the ::getObject method) are Accessibles. This means
22 that Actions such as "open link" are normally invoked on
23 the result of Hyperlink::getObject rather than directly on the
24 Hyperlink instance. For historical reasons some implementors of Hyperlink
25 implement Action as well. This usage on the part of implementing
26 applications and toolkits is discouraged, but clients of Hyperlink
27 should be aware of it and prepared to handle such usage.</p>
29 <tp:property name="nAnchors" type="n" access="read">
31 the number of separate anchors associated with this Hyperlink
34 <tp:property name="startIndex" type="i" access="read">
35 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
36 <p>the starting offset within the containing Hypertext content
37 with which this Hyperlink is associated </p>
40 <tp:property name="endIndex" type="i" access="read">
41 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
42 <p>the ending offset within the containing Hypertext content
43 with which this Hyperlink is associated; that is, the offset of the
44 first element past the range within the Hypertext associated with
48 <method name="getObject">
49 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
50 <p>Gets the i'th object, (where i is an integer between 0 and
51 Hyperlink::numAnchors - 1, inclusive) associated with a Hyperlink.
52 The objects returned are usually actionable (i.e. they should implement
53 Accessibility::Action), and the available actions often include
54 "open", "bookmark", "save link as", etc. They may also implement
55 Accessibility::StreamableContent, although clients can normally use
56 ::getURI to obtain a resource locator via which the object's
57 data may be accessed. </p>
59 <p>@note the most common application for 'multi anchor'
60 hyperlinks in HTML is probably "client side imagemaps".
61 A clickable image which uses the HTML 'usemap' attribute
62 should have one anchor for every <area> element that
63 includes an HREF. The objects corresponding to these map
64 areas may implement Accessibility::Component, to represent
65 their onscreen bounding box, and may expose their 'shape' as
66 as name-value pair via Accessibility::Accessible::getAttributeSet. </p>
68 <arg direction="in" name="i" type="i"/>
69 <arg direction="out" type="o" tp:type="Accessible">
71 an Accessible object instance representing theHyperlink's ith anchor, or through which the content associated withthe \c ith anchor can beaccessed.
75 <method name="getURI">
76 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
77 <p>Obtain a resource locator ('URI') which can be used to
78 access the content to which this link "points" or is connected.</p>
80 <arg direction="in" name="i" type="i"/>
81 <arg direction="out" type="s">
83 a string corresponding to the URI of the Hyperlink's'ith' anchor, if one exists, or a NIL string otherwise.
87 <method name="isValid">
88 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
89 <p>Check the hyperlink to see if a connection to its backing
90 content can be established, or if its URI is valid.
91 @note instances of invalid hyperlinks include links with malformed
92 URIs, or for which a contact to the service provider
93 specified in the URI cannot be established.</p>
95 <arg direction="out" type="b" tp:type="boolean">
97 \c True if the object's content is available, or\c False if the hyperlink's URI is invalid, or a connection to the resource can not be established.
101 <method name="unImplemented">
102 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
106 <p>placeholders for future expansion.</p>
109 <method name="unImplemented2">
111 <method name="unImplemented3">
113 <method name="unImplemented4">