COPASI API
4.40.278
|
#include <CConstants.h>
Public Member Functions | |
CMIRIAMResourceObject (const CMIRIAMResourceObject &src) | |
CMIRIAMResourceObject (const std::string &displayName, const std::string &id) | |
CMIRIAMResourceObject (CRDFNode *pNode) | |
std::string | getDisplayName () const |
const std::string & | getId () const |
std::string | getIdentifiersOrgURL () const |
CRDFNode * | getNode () const |
size_t | getResource (const std::string &URI) |
std::string | getURI () const |
bool | isValid () const |
bool | isValid (const std::string &URI) const |
bool | setDisplayName (const std::string &displayName) |
bool | setId (const std::string &id) |
bool | setNode (CRDFNode *pNode) |
bool | setURI (const std::string &URI) |
virtual | ~CMIRIAMResourceObject () |
Static Public Member Functions | |
static const CMIRIAMResources & | getResourceList () |
static void | setMIRIAMResources (const CMIRIAMResources *pResources) |
Private Member Functions | |
CMIRIAMResourceObject () | |
void | extractId (const std::string &URI) |
Static Private Member Functions | |
static std::string | trimId (const std::string &id) |
static void | unescapeId (std::string &id) |
Private Attributes | |
std::string | mId |
CRDFNode * | mpNode |
size_t | mResource |
Static Private Attributes | |
static const CMIRIAMResources * | mpResources = NULL |
|
private |
CMIRIAMResourceObject::CMIRIAMResourceObject | ( | CRDFNode * | pNode | ) |
References CRDFNode::getObject(), CRDFObject::getResource(), mpNode, and setURI().
CMIRIAMResourceObject::CMIRIAMResourceObject | ( | const std::string & | displayName, |
const std::string & | id | ||
) |
References mId, and setDisplayName().
CMIRIAMResourceObject::CMIRIAMResourceObject | ( | const CMIRIAMResourceObject & | src | ) |
|
virtual |
Destructor
|
private |
References C_INVALID_INDEX, CMIRIAMResource::extractId(), CMIRIAMResources::getMIRIAMResource(), mId, mpResources, mResource, and unescapeId().
Referenced by setURI().
std::string CMIRIAMResourceObject::getDisplayName | ( | ) | const |
References C_INVALID_INDEX, CMIRIAMResources::getMIRIAMResource(), mpResources, and mResource.
Referenced by CBiologicalDescription::getResource(), and CReference::getResource().
const std::string & CMIRIAMResourceObject::getId | ( | ) | const |
References mId.
Referenced by CBiologicalDescription::getId(), and CReference::getId().
std::string CMIRIAMResourceObject::getIdentifiersOrgURL | ( | ) | const |
References CMIRIAMResource::createIdentifiersOrgURL(), CMIRIAMResources::getMIRIAMResource(), mId, mpResources, and mResource.
Referenced by CSBMLExporter::updateMIRIAMAnnotation().
CRDFNode * CMIRIAMResourceObject::getNode | ( | ) | const |
References mpNode.
Referenced by CRDFNode::setFieldValue().
size_t CMIRIAMResourceObject::getResource | ( | const std::string & | URI | ) |
References CMIRIAMResources::getMIRIAMResourceIndex(), and mpResources.
Referenced by setURI().
|
static |
References mpResources.
std::string CMIRIAMResourceObject::getURI | ( | ) | const |
References CMIRIAMResources::getMIRIAMResource(), mId, mpResources, and mResource.
Referenced by CBiologicalDescription::getURI(), CReference::getURI(), CRDFNode::setFieldValue(), CBiologicalDescription::setId(), CReference::setId(), CBiologicalDescription::setResource(), and CReference::setResource().
bool CMIRIAMResourceObject::isValid | ( | ) | const |
References C_INVALID_INDEX, mId, and mResource.
Referenced by CBiologicalDescription::clearInvalidEntries(), CReference::clearInvalidEntries(), CRDFNode::setFieldValue(), setId(), and setURI().
bool CMIRIAMResourceObject::isValid | ( | const std::string & | URI | ) | const |
References C_INVALID_INDEX, CMIRIAMResources::getMIRIAMResourceIndex(), mpResources, and mResource.
bool CMIRIAMResourceObject::setDisplayName | ( | const std::string & | displayName | ) |
References C_INVALID_INDEX, CMIRIAMResources::getResourceIndexFromDisplayName(), mpResources, and mResource.
Referenced by CMIRIAMResourceObject(), CBiologicalDescription::setResource(), and CReference::setResource().
bool CMIRIAMResourceObject::setId | ( | const std::string & | id | ) |
References C_INVALID_INDEX, isValid(), mId, mResource, and trimId().
Referenced by CBiologicalDescription::setId(), and CReference::setId().
|
static |
References mpResources.
Referenced by CConfigurationFile::elevateChildren().
bool CMIRIAMResourceObject::setNode | ( | CRDFNode * | pNode | ) |
References CRDFNode::getObject(), CRDFObject::getResource(), mpNode, and setURI().
Referenced by CReference::CReference(), CReference::setId(), and CReference::setResource().
bool CMIRIAMResourceObject::setURI | ( | const std::string & | URI | ) |
References C_INVALID_INDEX, extractId(), getResource(), isValid(), MCAnnotation, mResource, and CCopasiMessage::WARNING.
Referenced by CReference::clearInvalidEntries(), CMIRIAMResourceObject(), and setNode().
|
staticprivate |
Referenced by setId().
|
staticprivate |
References CCopasiXMLInterface::utf8().
Referenced by extractId().
|
private |
Referenced by CMIRIAMResourceObject(), extractId(), getId(), getIdentifiersOrgURL(), getURI(), isValid(), and setId().
|
private |
Referenced by CMIRIAMResourceObject(), getNode(), and setNode().
|
staticprivate |
Referenced by extractId(), getDisplayName(), getIdentifiersOrgURL(), getResource(), getResourceList(), getURI(), isValid(), setDisplayName(), and setMIRIAMResources().
|
private |
Referenced by extractId(), getDisplayName(), getIdentifiersOrgURL(), getURI(), isValid(), setDisplayName(), setId(), and setURI().