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;
422 virtual const OntologyTerm* get (
const std::string& sid)
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
virtual NMBase * createObject(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream &stream)
Subclasses should override this method to create, store, and then return an NUML object corresponding...
Definition NMBase.cpp:1715
virtual int setId(const std::string &sid)
Definition NMBase.cpp:413
virtual NUMLTypeCode_t getTypeCode() const
Returns the libnuml type code for this object.
Definition NMBase.cpp:624
virtual int getElementPosition() const
The NUML XML Schema is written such that the order of child elements is significant.
Definition NMBase.cpp:2041
virtual const std::string & getElementName() const =0
Returns the XML element name of this object.
virtual bool accept(NUMLVisitor &v) const =0
Accepts the given NUMLVisitor for this instance of NMBase.
virtual NMBase * clone() const =0
Creates and returns a deep copy of this NMBase object.
NMBase(const std::string &id="", const std::string &name="")
Only subclasses may create NMBase objects.
Definition NMBase.cpp:68
virtual void writeAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write their XML attributes to the XMLOutputStream.
Definition NMBase.cpp:2160
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 NMBase.cpp:2135
virtual const std::string & getId() const
Definition NMBase.cpp:220
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
const std::string & getOntologyURI() const
Returns the value of the "ontologyURI" attribute of this OntologyTerm.
Definition OntologyTerm.cpp:165
std::string mTerm
Definition OntologyTerm.h:276
friend class ConsistencyValidator
Definition OntologyTerm.h:288
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
int setTerm(const std::string &term)
Sets the value of the "term" attribute of this NUML object.
Definition OntologyTerm.cpp:107
std::string mOntologyURI
Definition OntologyTerm.h:278
std::string mSourceTermId
Definition OntologyTerm.h:277
friend class IdentifierConsistencyValidator
Definition OntologyTerm.h:289
friend class InternalConsistencyValidator
Definition OntologyTerm.h:290
std::string mId
Definition OntologyTerm.h:275
const std::string & getTerm() const
Returns the value of the "term" attribute of this OntologyTerm.
Definition OntologyTerm.cpp:147
Definition OntologyTerm.h:301
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