COPASI API  4.16.103
CRDFLiteral.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAM/CRDFLiteral.cpp,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2008/06/10 20:31:11 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 #include "copasi.h"
19 
20 #include "CRDFLiteral.h"
21 
23  mType(PLAIN),
24  mLanguage(""),
25  mDataType(""),
26  mLexicalData("")
27 {}
28 
30  mType(src.mType),
31  mLanguage(src.mLanguage),
32  mDataType(src.mDataType),
33  mLexicalData(src.mLexicalData)
34 {}
35 
37 {}
38 
40 {mType = type;}
41 
43  {return mType;}
44 
45 void CRDFLiteral::setLanguage(const std::string & language)
46 {mLanguage = language;}
47 
48 const std::string & CRDFLiteral::getLanguage() const
49  {return mLanguage;}
50 
51 void CRDFLiteral::setDataType(const std::string & dataType)
52 {mDataType = dataType;}
53 
54 const std::string & CRDFLiteral::getDataType() const
55  {return mDataType;}
56 
57 void CRDFLiteral::setLexicalData(const std::string & lexicalData)
58 {mLexicalData = lexicalData;}
59 
60 const std::string & CRDFLiteral::getLexicalData() const
61  {return mLexicalData;}
62 
63 std::ostream & operator << (std::ostream & os, const CRDFLiteral & literal)
64 {
65  os << literal.getLexicalData();
66  return os;
67 }
void setLanguage(const std::string &language)
Definition: CRDFLiteral.cpp:45
const std::string & getDataType() const
Definition: CRDFLiteral.cpp:54
std::string mDataType
Definition: CRDFLiteral.h:113
std::string mLanguage
Definition: CRDFLiteral.h:108
std::ostream & operator<<(std::ostream &os, const CRDFLiteral &literal)
Definition: CRDFLiteral.cpp:63
void setDataType(const std::string &dataType)
Definition: CRDFLiteral.cpp:51
std::string mLexicalData
Definition: CRDFLiteral.h:118
const std::string & getLanguage() const
Definition: CRDFLiteral.cpp:48
void setType(const eLiteralType &type)
Definition: CRDFLiteral.cpp:39
const eLiteralType & getType() const
Definition: CRDFLiteral.cpp:42
eLiteralType mType
Definition: CRDFLiteral.h:103
void setLexicalData(const std::string &lexicalData)
Definition: CRDFLiteral.cpp:57
const std::string & getLexicalData() const
Definition: CRDFLiteral.cpp:60