te::md::MetadataAnnotation Class Reference

A class to relate a metadata annotation to a TerraLib element (or entity). More...

#include <MetadataAnnotation.h>

Public Member Functions

const std::string & getAnnotationtId () const
 Gets the annotation identifier. More...
 
const std::string & getAnnotationURI () const
 Gets the link to the metadata. More...
 
const std::string & getElementId () const
 Gets the element being annotated identifier. More...
 
const std::string & getElementName () const
 Gets the element being annotated name. More...
 
 MetadataAnnotation (const std::string &aid=std::string(""))
 Constructor. More...
 
void setAnnotationURI (const std::string &uri)
 Sets the link to the metadata. More...
 
void setElementId (const std::string &eid)
 Sets the TerrsLib element idenfification. More...
 
void setElementName (const std::string &ename)
 Set the element being annotated name. More...
 
 ~MetadataAnnotation ()
 Destructor. More...
 

Private Attributes

std::string m_annotId
 
std::string m_annotURI
 
std::string m_elementId
 
std::string m_elementName
 

Detailed Description

A class to relate a metadata annotation to a TerraLib element (or entity).

Definition at line 43 of file MetadataAnnotation.h.

Constructor & Destructor Documentation

te::md::MetadataAnnotation::MetadataAnnotation ( const std::string &  aid = std::string(""))

Constructor.

Parameters
aidThe annotation unique id. If empty, the constructor will provide one.
te::md::MetadataAnnotation::~MetadataAnnotation ( )

Destructor.

Member Function Documentation

const std::string& te::md::MetadataAnnotation::getAnnotationtId ( ) const

Gets the annotation identifier.

const std::string& te::md::MetadataAnnotation::getAnnotationURI ( ) const

Gets the link to the metadata.

const std::string& te::md::MetadataAnnotation::getElementId ( ) const

Gets the element being annotated identifier.

const std::string& te::md::MetadataAnnotation::getElementName ( ) const

Gets the element being annotated name.

void te::md::MetadataAnnotation::setAnnotationURI ( const std::string &  uri)

Sets the link to the metadata.

Parameters
uriThe link to the metadata.
void te::md::MetadataAnnotation::setElementId ( const std::string &  eid)

Sets the TerrsLib element idenfification.

Parameters
ediThe TerraLib element identification id. Do not pass empty.
void te::md::MetadataAnnotation::setElementName ( const std::string &  ename)

Set the element being annotated name.

Parameters
enameThe element being annnotated name. Do not pass null.

Member Data Documentation

std::string te::md::MetadataAnnotation::m_annotId
private

Definition at line 92 of file MetadataAnnotation.h.

std::string te::md::MetadataAnnotation::m_annotURI
private

Definition at line 93 of file MetadataAnnotation.h.

std::string te::md::MetadataAnnotation::m_elementId
private

Definition at line 94 of file MetadataAnnotation.h.

std::string te::md::MetadataAnnotation::m_elementName
private

Definition at line 95 of file MetadataAnnotation.h.


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