Methods' Summary |
getResourceURL |
Return the URL of the resource. Arguments supplied on creation are
stripped away. Use getFullResourceURL() to access them.
|
getFullResourceURL |
Return an URL object of the resource URL that may contain arguments.
|
hasAnchor |
Return whether there is a non-empty anchor URL. When this method
returns false then getAnchorURLs() will return an empty list.
|
getAnchor |
Return a new XResourceId that represents the anchor resource.
|
getAnchorURLs |
Return the, possibly empty, list of anchor URLs. The URLs are
ordered so that the one in position 0 is the direct anchor of the
resource, while the one in position i+1 is the direct anchor of the
one in position i.
|
getResourceTypePrefix |
Return the type prefix of the resource URL. This includes all up to
and including the second slash.
|
compareTo |
Compare the called XResourceId object with the given
one.
|
isBoundTo |
Return whether the anchor of the called resource id object
represents the same resource as the given object.
|
isBoundToURL |
Return whether the anchor of the called resource id object
represents the same resource as the given anchor URL. This is a
convenience variant of the isBoundTo() function
that can also be seen as an optimization for the case that the
anchor consists of exactly one URL.
|
clone |
Return a copy of the called resource id. The caller becomes the
owner of the new object.
|
Methods' Details |
getResourceURL
- Description
- Return the URL of the resource. Arguments supplied on creation are
stripped away. Use getFullResourceURL() to access them.
|
|
getFullResourceURL
::com::sun::star::util::URL |
getFullResourceURL(); |
- Description
- Return an URL object of the resource URL that may contain arguments.
|
|
hasAnchor
- Description
- Return whether there is a non-empty anchor URL. When this method
returns false then getAnchorURLs() will return an empty list.
|
|
getAnchor
- Description
- Return a new XResourceId that represents the anchor resource.
|
|
getAnchorURLs
sequence< string > |
getAnchorURLs(); |
- Description
- Return the, possibly empty, list of anchor URLs. The URLs are
ordered so that the one in position 0 is the direct anchor of the
resource, while the one in position i+1 is the direct anchor of the
one in position i.
|
|
getResourceTypePrefix
string |
getResourceTypePrefix(); |
- Description
- Return the type prefix of the resource URL. This includes all up to
and including the second slash.
|
|
compareTo
- Description
- Compare the called XResourceId object with the given
one.
The two resource ids A and B are compared so that if A
The algorithm for this comparison is quite simple. It uses a
double lexicographic ordering. On the lower level individual URLs
are compared via the lexicographic order defined on strings. On the
higher level two resource ids are compared via a lexicographic order
defined on the URLS. So when there are two resource ids A1.A2
(A1 being the anchor of A2) and B1.B2 then A1.A2
- Parameter xId
- The resource id to which the called resource id is compared.
- Returns
- Returns 0 when the called resource id is
equivalent to the given resource id. Returns
-1 or
+1 when the two compared resource ids differ.
|
|
isBoundTo
- Description
- Return whether the anchor of the called resource id object
represents the same resource as the given object.
Note that not only the anchor of the given object is taken into
account. The whole object, including the resource URL, is
interpreted as anchor resource.
- Parameter xAnchor
- The resource id of the anchor.
- Parameter eMode
- This mode specifies how the called resource has to be bound to
the given anchor in order to have this function return true.
If eMode is DIRECT then the anchor of the called resource id
has to be identical to the given anchor. If eMode is
INDIRECT then the given anchor has to be a part
of the anchor of the called resource.
|
|
isBoundToURL
- Description
- Return whether the anchor of the called resource id object
represents the same resource as the given anchor URL. This is a
convenience variant of the isBoundTo() function
that can also be seen as an optimization for the case that the
anchor consists of exactly one URL.
- Parameter xAnchor
- The resource URL of the anchor.
- Parameter eMode
- This mode specifies how the called resource has to be bound to
the given anchor in order to have this function return. See the
description of isBoundTo() for more
information.
|
|
clone
- Description
- Return a copy of the called resource id. The caller becomes the
owner of the new object.
|
|
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.