COPASI API  4.40.278
CRDFLiteral Class Reference

#include <CRDFLiteral.h>

Public Types

enum  eLiteralType { PLAIN = 0 , TYPED }
 

Public Member Functions

 CRDFLiteral ()
 
 CRDFLiteral (const CRDFLiteral &src)
 
const std::string & getDataType () const
 
const std::string & getLanguage () const
 
const std::string & getLexicalData () const
 
const eLiteralTypegetType () const
 
void setDataType (const std::string &dataType)
 
void setLanguage (const std::string &language)
 
void setLexicalData (const std::string &lexicalData)
 
void setType (const eLiteralType &type)
 
 ~CRDFLiteral ()
 

Private Attributes

std::string mDataType
 
std::string mLanguage
 
std::string mLexicalData
 
eLiteralType mType
 

Member Enumeration Documentation

◆ eLiteralType

The two different types possible for literals

Enumerator
PLAIN 
TYPED 

Constructor & Destructor Documentation

◆ CRDFLiteral() [1/2]

CRDFLiteral::CRDFLiteral ( )

Default Constructor

◆ CRDFLiteral() [2/2]

CRDFLiteral::CRDFLiteral ( const CRDFLiteral src)

Copy Constructor

Parameters
constCRDFLiteral & src

◆ ~CRDFLiteral()

CRDFLiteral::~CRDFLiteral ( )

Destructor

Member Function Documentation

◆ getDataType()

const std::string & CRDFLiteral::getDataType ( ) const

Retrieve the data type of the literal

Returns
const std::string & dataType

References mDataType.

Referenced by CRDFWriter::write().

◆ getLanguage()

const std::string & CRDFLiteral::getLanguage ( ) const

Retrieve the language of the literal

Returns
const std::string & language

References mLanguage.

Referenced by CRDFWriter::write().

◆ getLexicalData()

const std::string & CRDFLiteral::getLexicalData ( ) const

Retrieve the lexical data of the literal

Returns
const std::string & lexicalData

References mLexicalData.

Referenced by CRDFNode::getFieldValue(), operator<<(), and CRDFWriter::write().

◆ getType()

const CRDFLiteral::eLiteralType & CRDFLiteral::getType ( ) const

Retrieve the type of the literal

Returns
const eLiteralType & type

References mType.

Referenced by CRDFWriter::write().

◆ setDataType()

void CRDFLiteral::setDataType ( const std::string &  dataType)

Set the data type of the literal

Parameters
conststd::string & dataType

References mDataType.

Referenced by CRDFParser::TripleHandler().

◆ setLanguage()

void CRDFLiteral::setLanguage ( const std::string &  language)

Set the language of the literal

Parameters
conststd::string & language

References mLanguage.

Referenced by CRDFParser::TripleHandler().

◆ setLexicalData()

void CRDFLiteral::setLexicalData ( const std::string &  lexicalData)

Set the lexical data of the literal

Parameters
conststd::string & lexicalData

References mLexicalData.

Referenced by CRDFNode::setFieldValue(), and CRDFParser::TripleHandler().

◆ setType()

void CRDFLiteral::setType ( const eLiteralType type)

Set the type of the literal

Parameters
consteLiteralType & type

References mType.

Referenced by CRDFNode::setFieldValue(), and CRDFParser::TripleHandler().

Member Data Documentation

◆ mDataType

std::string CRDFLiteral::mDataType
private

The data type describing URI for literals of type TYPED.

Referenced by getDataType(), and setDataType().

◆ mLanguage

std::string CRDFLiteral::mLanguage
private

The language tag for literals of type PLAIN

Referenced by getLanguage(), and setLanguage().

◆ mLexicalData

std::string CRDFLiteral::mLexicalData
private

The lical form of the data

Referenced by getLexicalData(), and setLexicalData().

◆ mType

eLiteralType CRDFLiteral::mType
private

The type of the literal

Referenced by getType(), and setType().


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