24#ifndef ONTOLOGYTERM_H_
25#define ONTOLOGYTERM_H_
39LIBNUML_CPP_NAMESPACE_BEGIN
119 const std::string&
getId ()
const;
127 const std::string& getTerm ()
const;
134 const std::string& getSourceTermId ()
const;
141 const std::string& getOntologyURI ()
const;
175 int setId (
const std::string& sid);
192 int setTerm (
const std::string& term);
208 int setSourceTermId(
const std::string& sourceTermId);
224 int setOntologyURI(
const std::string& ontologyURI);
260 virtual void readAttributes(
const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes& attributes);
268 virtual void writeAttributes (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
287 friend class Validator;
288 friend class ConsistencyValidator;
289 friend class IdentifierConsistencyValidator;
290 friend class InternalConsistencyValidator;
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.
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
Parent class for the various NUML list classes e.g.
Definition: NUMLList.h:45
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
std::string mTerm
Definition: OntologyTerm.h:276
std::string mOntologyURI
Definition: OntologyTerm.h:278
std::string mSourceTermId
Definition: OntologyTerm.h:277
std::string mId
Definition: OntologyTerm.h:275
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