24#ifndef ONTOLOGYTERM_H_
25#define ONTOLOGYTERM_H_
39LIBNUML_CPP_NAMESPACE_BEGIN
119 const std::string&
getId ()
const;
127 const std::string&
getTerm ()
const;
175 int setId (
const std::string& sid);
192 int setTerm (
const std::string& term);
260 virtual void readAttributes(
const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes& attributes);
268 virtual void writeAttributes (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
365 virtual const std::string& getElementName ()
const;
422 virtual const OntologyTerm* get (
const std::string& sid)
const;
467 virtual int getElementPosition ()
const;
478 virtual NMBase* createObject (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream& stream);
484LIBNUML_CPP_NAMESPACE_END
490LIBNUML_CPP_NAMESPACE_BEGIN
496LIBNUML_CPP_NAMESPACE_END
NUMLTypeCode_t
An enumeration of NUML types to help identify NUML objects at runtime.
Definition NUMLTypeCodes.h:34
@ NUML_NUMLLIST
Definition NUMLTypeCodes.h:52
This is the base class for all numl objects.
Definition NMBase.h:71
NMBase(const std::string &id="", const std::string &name="")
Only subclasses may create NMBase objects.
Definition NMBase.cpp:68
NUMLList(unsigned int level, unsigned int version)
Creates a new NUMLList using the given NUML level and version values.
Definition NUMLList.cpp:28
namespace class
Definition NUMLNamespaces.h:47
Implementation of the Visitor design pattern, for operations on NUML objects.
Definition NUMLVisitor.h:73
ontology terms store information about what individual elements represents
Definition OntologyTerm.h:44
virtual const std::string & getElementName() const
Returns the XML element name of this object, which for OntologyTerm, is always "ontologyTerm".
Definition OntologyTerm.cpp:201
const std::string & getOntologyURI() const
Returns the value of the "ontologyURI" attribute of this OntologyTerm.
Definition OntologyTerm.cpp:165
virtual bool accept(NUMLVisitor &v) const
Accepts the given NUMLVisitor for this instance of OntologyTerm.
Definition OntologyTerm.cpp:70
std::string mTerm
Definition OntologyTerm.h:276
friend class ConsistencyValidator
Definition OntologyTerm.h:288
virtual void writeAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write their XML attributes to the XMLOutputStream.
Definition OntologyTerm.cpp:262
friend class Validator
Definition OntologyTerm.h:287
int setOntologyURI(const std::string &ontologyURI)
Sets the value of the "ontologyURI" attribute of this NUML object.
Definition OntologyTerm.cpp:117
OntologyTerm(unsigned int level, unsigned int version)
Creates an new OntologyTerm using the given NUML level and version values.
Definition OntologyTerm.cpp:39
const std::string & getSourceTermId() const
Returns the value of the "sourceTermId" attribute of this OntologyTerm.
Definition OntologyTerm.cpp:156
int setSourceTermId(const std::string &sourceTermId)
Sets the value of the "sourceTermId" attribute of this NUML object.
Definition OntologyTerm.cpp:127
const std::string & getId() const
Returns the value of the "id" attribute of this OntologyTerm.
Definition OntologyTerm.cpp:137
int setId(const std::string &sid)
Definition OntologyTerm.cpp:89
int setTerm(const std::string &term)
Sets the value of the "term" attribute of this NUML object.
Definition OntologyTerm.cpp:107
virtual NUMLTypeCode_t getTypeCode() const
Returns the libNUML type code for this NUML object.
Definition OntologyTerm.cpp:191
std::string mOntologyURI
Definition OntologyTerm.h:278
std::string mSourceTermId
Definition OntologyTerm.h:277
virtual OntologyTerm * clone() const
Creates and returns a deep copy of this OntologyTerm.
Definition OntologyTerm.cpp:80
friend class IdentifierConsistencyValidator
Definition OntologyTerm.h:289
friend class InternalConsistencyValidator
Definition OntologyTerm.h:290
virtual void readAttributes(const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes &attributes)
Subclasses should override this method to read values from the given XMLAttributes set into their spe...
Definition OntologyTerm.cpp:214
std::string mId
Definition OntologyTerm.h:275
OntologyTerm()
Definition OntologyTerm.cpp:171
const std::string & getTerm() const
Returns the value of the "term" attribute of this OntologyTerm.
Definition OntologyTerm.cpp:147
Definition OntologyTerm.h:301
virtual OntologyTerms * clone() const
Creates and returns a deep copy of this OntologyTerms instance.
Definition OntologyTerm.cpp:283
virtual NUMLTypeCode_t getTypeCode() const
Returns the libNUML type code for this NUML object.
Definition OntologyTerm.h:331
#define BEGIN_C_DECLS
Definition extern.h:112
#define LIBNUML_EXTERN
Begin svn Header.
Definition extern.h:104
#define END_C_DECLS
Definition extern.h:113
Definition OntologyTerm.h:295
std::string ontologyURI
Definition OntologyTerm.h:298
std::string sourceTermId
Definition OntologyTerm.h:297
std::string term
Definition OntologyTerm.h:296