COPASI API
4.40.278
|
#include <CRDFObject.h>
Public Types | |
enum | eObjectType { RESOURCE = 0 , BLANK_NODE , LITERAL } |
Public Member Functions | |
void | clearData () |
CRDFObject () | |
CRDFObject (const CRDFObject &src) | |
const std::string & | getBlankNodeID () const |
CRDFLiteral & | getLiteral () |
const CRDFLiteral & | getLiteral () const |
const std::string & | getResource () const |
const eObjectType & | getType () const |
const bool & | isLocal () const |
CRDFObject & | operator= (const CRDFObject &rhs) |
void | setBlankNodeId (const std::string &blankNodeId) |
void | setLiteral (const CRDFLiteral &literal) |
void | setResource (const std::string &resource, const bool &isLocal) |
void | setType (const eObjectType &type) |
virtual | ~CRDFObject () |
Private Member Functions | |
bool | operator== (const CRDFObject &rhs) const |
Private Attributes | |
std::string | mBlankNodeId |
bool | mIsLocalResource |
CRDFLiteral * | mpLiteral |
std::string | mResource |
eObjectType | mType |
CRDFObject::CRDFObject | ( | ) |
Default Constructor
CRDFObject::CRDFObject | ( | const CRDFObject & | src | ) |
Copy Constructor
const | CRDFObject & src |
void CRDFObject::clearData | ( | ) |
Reset all Data
References mBlankNodeId, mIsLocalResource, mpLiteral, mResource, mType, and RESOURCE.
const std::string & CRDFObject::getBlankNodeID | ( | ) | const |
Retrieve the ID of the blank node of the object
References mBlankNodeId.
Referenced by CRDFGraph::destroyUnreferencedNode(), CRDFNode::getFieldValue(), CRDFNode::setObject(), and CRDFWriter::write().
CRDFLiteral & CRDFObject::getLiteral | ( | ) |
Retrieve the literal of the object
References mpLiteral.
Referenced by CRDFNode::getFieldValue(), CRDFNode::setFieldValue(), and CRDFWriter::write().
const CRDFLiteral & CRDFObject::getLiteral | ( | ) | const |
const std::string & CRDFObject::getResource | ( | ) | const |
Retrieve the resource of the object
References mResource.
Referenced by CRDFGraph::addTriplet(), CMIRIAMResourceObject::CMIRIAMResourceObject(), CRDFGraph::destroyUnreferencedNode(), CRDFNode::getFieldValue(), CMIRIAMResourceObject::setNode(), and CRDFWriter::write().
const CRDFObject::eObjectType & CRDFObject::getType | ( | ) | const |
Retrieve the type of the object
References mType.
Referenced by CRDFGraph::addTriplet(), CRDFGraph::destroyUnreferencedNode(), CRDFNode::getFieldValue(), CRDFNode::setFieldValue(), CRDFNode::setObject(), and CRDFWriter::write().
const bool & CRDFObject::isLocal | ( | ) | const |
Check whehter the resource is local
References mIsLocalResource.
Referenced by CRDFGraph::destroyUnreferencedNode(), and setResource().
CRDFObject & CRDFObject::operator= | ( | const CRDFObject & | rhs | ) |
References mBlankNodeId, mIsLocalResource, mpLiteral, mResource, and mType.
|
private |
References BLANK_NODE, LITERAL, mBlankNodeId, mIsLocalResource, mpLiteral, mResource, mType, and RESOURCE.
void CRDFObject::setBlankNodeId | ( | const std::string & | blankNodeId | ) |
Set the ID of the blank node of the object
const | std::string & blankNodeId |
References mBlankNodeId.
Referenced by CRDFGraphConverter::convert(), CMIRIAMInfo::createCreator(), CMIRIAMInfo::createModification(), CMIRIAMInfo::createReference(), CMIRIAMInfo::setCreatedDT(), CRDFNode::setSubject(), and CRDFParser::TripleHandler().
void CRDFObject::setLiteral | ( | const CRDFLiteral & | literal | ) |
Set the literal of the object
const | std::string & lexicalData |
References mpLiteral, and pdelete.
Referenced by CRDFParser::TripleHandler().
void CRDFObject::setResource | ( | const std::string & | resource, |
const bool & | isLocal | ||
) |
Set the resource of the object
const | std::string & resource |
const | bool & isLocal |
References isLocal(), mIsLocalResource, and mResource.
Referenced by CRDFNode::addEdge(), CRDFGraph::addTriplet(), CRDFGraphConverter::convert(), CMIRIAMInfo::createBiologicalDescription(), CRDFNode::setFieldValue(), CBiologicalDescription::setId(), CReference::setId(), CBiologicalDescription::setResource(), CReference::setResource(), and CRDFParser::TripleHandler().
void CRDFObject::setType | ( | const eObjectType & | type | ) |
Set the type of the object
const | eObjectType & type |
References mType.
Referenced by CRDFNode::addEdge(), CRDFGraphConverter::convert(), CMIRIAMInfo::createBiologicalDescription(), CMIRIAMInfo::createCreator(), CRDFNode::createMissingAncestors(), CMIRIAMInfo::createModification(), CMIRIAMInfo::createReference(), CMIRIAMInfo::setCreatedDT(), CRDFNode::setFieldValue(), CRDFNode::setSubject(), and CRDFParser::TripleHandler().
|
private |
The Id of the blank node for type BLANK_NODE
Referenced by clearData(), getBlankNodeID(), operator=(), operator==(), and setBlankNodeId().
|
private |
Stores whether the reources is resolve locally or remotely.
Referenced by clearData(), isLocal(), operator=(), operator==(), and setResource().
|
mutableprivate |
The pointer to the literal for type LITERAL
Referenced by clearData(), getLiteral(), operator=(), operator==(), setLiteral(), and ~CRDFObject().
|
private |
The URI of the resource of type RESOURCE
Referenced by clearData(), getResource(), operator=(), operator==(), and setResource().
|
private |
The type of the object
Referenced by clearData(), getType(), operator=(), operator==(), and setType().