COPASI API
4.16.103
|
#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 eLiteralType & | getType () 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 |
Definition at line 23 of file CRDFLiteral.h.
The two different types possible for literals
Enumerator | |
---|---|
PLAIN | |
TYPED |
Definition at line 30 of file CRDFLiteral.h.
CRDFLiteral::CRDFLiteral | ( | ) |
CRDFLiteral::CRDFLiteral | ( | const CRDFLiteral & | src | ) |
CRDFLiteral::~CRDFLiteral | ( | ) |
const std::string & CRDFLiteral::getDataType | ( | ) | const |
Retrieve the data type of the literal
Definition at line 54 of file CRDFLiteral.cpp.
References mDataType.
Referenced by CRDFWriter::write().
const std::string & CRDFLiteral::getLanguage | ( | ) | const |
Retrieve the language of the literal
Definition at line 48 of file CRDFLiteral.cpp.
References mLanguage.
Referenced by CRDFWriter::write().
const std::string & CRDFLiteral::getLexicalData | ( | ) | const |
Retrieve the lexical data of the literal
Definition at line 60 of file CRDFLiteral.cpp.
References mLexicalData.
Referenced by CRDFNode::getFieldValue(), operator<<(), CQRDFTreeViewItem::setTriplet(), and CRDFWriter::write().
const CRDFLiteral::eLiteralType & CRDFLiteral::getType | ( | ) | const |
Retrieve the type of the literal
Definition at line 42 of file CRDFLiteral.cpp.
References mType.
Referenced by CQRDFTreeViewItem::setTriplet(), and CRDFWriter::write().
void CRDFLiteral::setDataType | ( | const std::string & | dataType | ) |
Set the data type of the literal
const | std::string & dataType |
Definition at line 51 of file CRDFLiteral.cpp.
References mDataType.
Referenced by CRDFParser::TripleHandler().
void CRDFLiteral::setLanguage | ( | const std::string & | language | ) |
Set the language of the literal
const | std::string & language |
Definition at line 45 of file CRDFLiteral.cpp.
References mLanguage.
Referenced by CRDFParser::TripleHandler().
void CRDFLiteral::setLexicalData | ( | const std::string & | lexicalData | ) |
Set the lexical data of the literal
const | std::string & lexicalData |
Definition at line 57 of file CRDFLiteral.cpp.
References mLexicalData.
Referenced by CRDFNode::setFieldValue(), and CRDFParser::TripleHandler().
void CRDFLiteral::setType | ( | const eLiteralType & | type | ) |
Set the type of the literal
const | eLiteralType & type |
Definition at line 39 of file CRDFLiteral.cpp.
References mType.
Referenced by CRDFNode::setFieldValue(), and CRDFParser::TripleHandler().
|
private |
The data type describing URI for literals of type TYPED.
Definition at line 113 of file CRDFLiteral.h.
Referenced by getDataType(), and setDataType().
|
private |
The language tag for literals of type PLAIN
Definition at line 108 of file CRDFLiteral.h.
Referenced by getLanguage(), and setLanguage().
|
private |
The lical form of the data
Definition at line 118 of file CRDFLiteral.h.
Referenced by getLexicalData(), and setLexicalData().
|
private |
The type of the literal
Definition at line 103 of file CRDFLiteral.h.