|
Nebula
|
#include <urn.h>
A URN (Uniform Resource Name) is a URI (Uniform Resource Identifier) that uses the "urn" scheme.
URNs are intended to serve as persistent, location-independent resource identifiers and are defined in RFC 8141. A URN is typically used to identify a resource by name rather than by location, and is often used in contexts where the resource may not be directly accessible, such as in metadata or as a unique identifier for an asset.
Public Member Functions | |
| URN () | |
| default constructor | |
| URN (const Util::String &s) | |
| init constructor | |
| URN (const char *s) | |
| init constructor | |
| URN (const URN &rhs) | |
| copy constructor | |
| void | operator= (const URN &rhs) |
| assignmnent operator | |
| bool | operator== (const URN &rhs) const |
| equality operator | |
| bool | operator!= (const URN &rhs) const |
| inequality operator | |
| void | Set (const Util::String &s) |
| set complete URI string | |
| Util::String | AsString () const |
| return as concatenated string | |
| bool | IsEmpty () const |
| return true if the URI is empty | |
| bool | IsValid () const |
| return true if the URI is not empty | |
| void | Clear () |
| clear the URI | |
| void | SetNamespace (const Util::String &s) |
| set Namespace component | |
| const Util::String & | GetNamespace () const |
| get Namespace component | |
| void | SetSpecific (const Util::String &s) |
| set Specific component | |
| const Util::String & | GetSpecific () const |
| get Specific component (can be empty) | |
| void | SetQuery (const Util::String &s) |
| set query component | |
| const Util::String & | GetQuery () const |
| get query component (can be empty) | |
| void | SetFragment (const Util::String &s) |
| set fragment component | |
| const Util::String & | GetFragment () const |
| get fragment component (can be empty) | |
Private Member Functions | |
| bool | Split (const Util::String &s) |
| split string into components | |
| Util::String | Build () const |
| build string from components | |
Private Attributes | |
| bool | isEmpty |
| Util::String | nid |
| Util::String | nss |
| Util::String | query |
| Util::String | fragment |
|
inline |
default constructor
|
inline |
init constructor
|
inline |
init constructor
|
inline |
copy constructor
|
inline |
return as concatenated string
|
private |
build string from components
This builds an URI string from its components.
|
inline |
clear the URI
|
inline |
get fragment component (can be empty)
|
inline |
get Namespace component
|
inline |
get query component (can be empty)
|
inline |
get Specific component (can be empty)
|
inline |
return true if the URI is empty
|
inline |
return true if the URI is not empty
|
inline |
inequality operator
|
inline |
assignmnent operator
|
inline |
equality operator
|
inline |
set complete URI string
|
inline |
set fragment component
|
inline |
set Namespace component
|
inline |
set query component
|
inline |
set Specific component
|
private |
split string into components
Resolve assigns and split URN string into its components.
|
private |
|
private |
|
private |
|
private |
|
private |