LibreOffice
LibreOffice 24.2 SDK API Reference
|
represents generic, mutable URI references. More...
import"XUriReference.idl";
Public Member Functions | |
string | getUriReference () |
returns the textual representation of the complete URI reference. More... | |
boolean | isAbsolute () |
returns whether this URI reference is absolute or relative. More... | |
string | getScheme () |
returns the scheme part of this (absolute) URI reference. More... | |
string | getSchemeSpecificPart () |
returns the scheme-specific part of this URI reference. More... | |
boolean | isHierarchical () |
returns whether this URI reference is hierarchical or opaque, in the sense of RFC 2396. More... | |
boolean | hasAuthority () |
returns whether this URI reference has an authority part. More... | |
string | getAuthority () |
returns the authority part of this URI reference. More... | |
string | getPath () |
returns the path part of this URI reference. More... | |
boolean | hasRelativePath () |
returns whether this URI reference has a relative path. More... | |
long | getPathSegmentCount () |
returns the number of path segments of this URI reference. More... | |
string | getPathSegment ([in] long index) |
returns a given path segment of this URI reference. More... | |
boolean | hasQuery () |
returns whether this URI reference has a query part. More... | |
string | getQuery () |
returns the query part of this URI reference. More... | |
boolean | hasFragment () |
returns whether this URI reference has a fragment part. More... | |
string | getFragment () |
returns the fragment part of this URI reference. More... | |
void | setFragment ([in] string fragment) |
sets the fragment part of this URI reference. More... | |
void | clearFragment () |
clears the fragment part of this URI reference. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
represents generic, mutable URI references.
See RFC 3986 for a description of URI references and related terms.
This interface only handles generic URI references (both absolute and relative). For specific URI schemes, there will be additional interfaces that offer extra, scheme-specific functionality.
void clearFragment | ( | ) |
clears the fragment part of this URI reference.
string getAuthority | ( | ) |
returns the authority part of this URI reference.
string
is returned. string getFragment | ( | ) |
returns the fragment part of this URI reference.
#
”), if this is a URI reference that has a fragment part; otherwise, an empty string
is returned. string getPath | ( | ) |
returns the path part of this URI reference.
string getPathSegment | ( | [in] long | index | ) |
returns a given path segment of this URI reference.
index | the index of the path segment, starting at zero. |
/
”), if this URI reference has that many path segments; otherwise, and in particular if index
is negative, an empty string
is returned. long getPathSegmentCount | ( | ) |
returns the number of path segments of this URI reference.
For a URI reference with an empty path, the number of path segments is zero. For a URI reference with an absolute, non-empty path, the number of path segments equals the number of “/
” delimiters. For a URI reference with a relative, non-empty path, the number of path segments equals the number of “/
” delimiters, plus one.
string getQuery | ( | ) |
returns the query part of this URI reference.
?
”), if this is a URI reference that has a query part; otherwise, an empty string
is returned. string getScheme | ( | ) |
returns the scheme part of this (absolute) URI reference.
:
”), if this is an absolute URI reference; otherwise, an empty string
is returned. string getSchemeSpecificPart | ( | ) |
returns the scheme-specific part of this URI reference.
For an absolute URI reference, the scheme-specific part is everything after the scheme part and the delimiting “:
”, and before the optional “#
” and fragment part. For a relative URI reference, the scheme-specific part is everything before the optional “#
” and fragment part.
string getUriReference | ( | ) |
returns the textual representation of the complete URI reference.
boolean hasAuthority | ( | ) |
returns whether this URI reference has an authority part.
TRUE
if this URI reference has an authority part. boolean hasFragment | ( | ) |
returns whether this URI reference has a fragment part.
TRUE
if this URI reference has a fragment part. boolean hasQuery | ( | ) |
returns whether this URI reference has a query part.
TRUE
if this URI reference has a query part. boolean hasRelativePath | ( | ) |
returns whether this URI reference has a relative path.
TRUE
if this URI reference has a relative path. boolean isAbsolute | ( | ) |
returns whether this URI reference is absolute or relative.
A URI is absolute if it has a scheme.
TRUE
if this URI reference is absolute, FALSE
if it is relative. boolean isHierarchical | ( | ) |
returns whether this URI reference is hierarchical or opaque, in the sense of RFC 2396.
An absolute URI reference is hierarchical if its scheme-specific part starts with “/
”. A relative URI reference is always hierarchical.
TRUE
if this URI reference is hierarchical, FALSE
if it is opaque.void setFragment | ( | [in] string | fragment | ) |
sets the fragment part of this URI reference.
fragment | the textual representation of the new fragment part. The exact spelling will be preserved, and no escaping is performed. |