COPASI API  4.16.103
Public Types | Public Member Functions | Private Attributes | List of all members
CRDFLiteral Class Reference

#include <CRDFLiteral.h>

Collaboration diagram for CRDFLiteral:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 23 of file CRDFLiteral.h.

Member Enumeration Documentation

The two different types possible for literals

Enumerator
PLAIN 
TYPED 

Definition at line 30 of file CRDFLiteral.h.

Constructor & Destructor Documentation

CRDFLiteral::CRDFLiteral ( )

Default Constructor

Definition at line 22 of file CRDFLiteral.cpp.

22  :
23  mType(PLAIN),
24  mLanguage(""),
25  mDataType(""),
26  mLexicalData("")
27 {}
std::string mDataType
Definition: CRDFLiteral.h:113
std::string mLanguage
Definition: CRDFLiteral.h:108
std::string mLexicalData
Definition: CRDFLiteral.h:118
eLiteralType mType
Definition: CRDFLiteral.h:103
CRDFLiteral::CRDFLiteral ( const CRDFLiteral src)

Copy Constructor

Parameters
constCRDFLiteral & src

Definition at line 29 of file CRDFLiteral.cpp.

29  :
30  mType(src.mType),
31  mLanguage(src.mLanguage),
32  mDataType(src.mDataType),
34 {}
std::string mDataType
Definition: CRDFLiteral.h:113
std::string mLanguage
Definition: CRDFLiteral.h:108
std::string mLexicalData
Definition: CRDFLiteral.h:118
eLiteralType mType
Definition: CRDFLiteral.h:103
CRDFLiteral::~CRDFLiteral ( )

Destructor

Definition at line 36 of file CRDFLiteral.cpp.

37 {}

Member Function Documentation

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

Retrieve the data type of the literal

Returns
const std::string & dataType

Definition at line 54 of file CRDFLiteral.cpp.

References mDataType.

Referenced by CRDFWriter::write().

55  {return mDataType;}
std::string mDataType
Definition: CRDFLiteral.h:113
const std::string & CRDFLiteral::getLanguage ( ) const

Retrieve the language of the literal

Returns
const std::string & language

Definition at line 48 of file CRDFLiteral.cpp.

References mLanguage.

Referenced by CRDFWriter::write().

49  {return mLanguage;}
std::string mLanguage
Definition: CRDFLiteral.h:108
const std::string & CRDFLiteral::getLexicalData ( ) const

Retrieve the lexical data of the literal

Returns
const std::string & lexicalData

Definition at line 60 of file CRDFLiteral.cpp.

References mLexicalData.

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

61  {return mLexicalData;}
std::string mLexicalData
Definition: CRDFLiteral.h:118
const CRDFLiteral::eLiteralType & CRDFLiteral::getType ( ) const

Retrieve the type of the literal

Returns
const eLiteralType & type

Definition at line 42 of file CRDFLiteral.cpp.

References mType.

Referenced by CQRDFTreeViewItem::setTriplet(), and CRDFWriter::write().

43  {return mType;}
eLiteralType mType
Definition: CRDFLiteral.h:103
void CRDFLiteral::setDataType ( const std::string &  dataType)

Set the data type of the literal

Parameters
conststd::string & dataType

Definition at line 51 of file CRDFLiteral.cpp.

References mDataType.

Referenced by CRDFParser::TripleHandler().

52 {mDataType = dataType;}
std::string mDataType
Definition: CRDFLiteral.h:113
void CRDFLiteral::setLanguage ( const std::string &  language)

Set the language of the literal

Parameters
conststd::string & language

Definition at line 45 of file CRDFLiteral.cpp.

References mLanguage.

Referenced by CRDFParser::TripleHandler().

46 {mLanguage = language;}
std::string mLanguage
Definition: CRDFLiteral.h:108
void CRDFLiteral::setLexicalData ( const std::string &  lexicalData)

Set the lexical data of the literal

Parameters
conststd::string & lexicalData

Definition at line 57 of file CRDFLiteral.cpp.

References mLexicalData.

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

58 {mLexicalData = lexicalData;}
std::string mLexicalData
Definition: CRDFLiteral.h:118
void CRDFLiteral::setType ( const eLiteralType type)

Set the type of the literal

Parameters
consteLiteralType & type

Definition at line 39 of file CRDFLiteral.cpp.

References mType.

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

40 {mType = type;}
eLiteralType mType
Definition: CRDFLiteral.h:103

Member Data Documentation

std::string CRDFLiteral::mDataType
private

The data type describing URI for literals of type TYPED.

Definition at line 113 of file CRDFLiteral.h.

Referenced by getDataType(), and setDataType().

std::string CRDFLiteral::mLanguage
private

The language tag for literals of type PLAIN

Definition at line 108 of file CRDFLiteral.h.

Referenced by getLanguage(), and setLanguage().

std::string CRDFLiteral::mLexicalData
private

The lical form of the data

Definition at line 118 of file CRDFLiteral.h.

Referenced by getLexicalData(), and setLexicalData().

eLiteralType CRDFLiteral::mType
private

The type of the literal

Definition at line 103 of file CRDFLiteral.h.

Referenced by getType(), and setType().


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