MICO Platform
 All Classes Namespaces Functions Variables Friends
Public Member Functions | List of all members
mico::persistence::model::URI Class Reference

A URI. More...

#include <Uri.hpp>

Public Member Functions

 URI (const std::string &uri)
 
 URI (const char *uri)
 
 URI (const mico::persistence::model::URI &uri)
 
std::string getLocalName () const
 Gets the local name of this URI.
 
std::string getNamespace () const
 Gets the namespace of this URI.
 
const std::string & stringValue () const
 Returns the String-value of a Value object. More...
 
bool operator== (const mico::persistence::model::URI &u) const
 
bool operator== (const std::string &s) const
 
bool operator== (const char *s) const
 
bool operator!= (const std::string &s) const
 
bool operator!= (const char *s) const
 

Detailed Description

A URI.

A URI consists of a namespace and a local name, which are derived from a URI string by splitting it in two using the following algorithm:

The last step should never fail as every legal (full) URI contains at least one ':' character to seperate the scheme from the rest of the URI. The implementation should check this upon object creation.

Member Function Documentation

const std::string& mico::persistence::model::URI::stringValue ( ) const
inline

Returns the String-value of a Value object.

This returns either a Literal's label, a URI's URI or a BNode's ID.


The documentation for this class was generated from the following files: