24 #ifndef ONTOLOGYTERM_H_ 25 #define ONTOLOGYTERM_H_ 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);
This is the base class for all numl objects.
Definition: NMBase.h:70
Definition: OntologyTerm.h:300
Definition: NUMLTypeCodes.h:52
#define BEGIN_C_DECLS
Definition: extern.h:112
virtual NUMLTypeCode_t getItemTypeCode() const
Get the type code of the objects contained in this NUMLList.
Definition: NUMLList.cpp:361
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:1714
virtual const std::string & getElementName() const
Returns the XML element name of this object, which for NUMLList, is always "listOf".
Definition: NUMLList.cpp:372
#define LIBNUML_CPP_NAMESPACE_BEGIN
Definition: libnuml-namespace.h:71
std::string mTerm
Definition: OntologyTerm.h:276
std::string mSourceTermId
Definition: OntologyTerm.h:277
Parent class for the various NUML list classes e.g.
Definition: NUMLList.h:45
std::string mOntologyURI
Definition: OntologyTerm.h:278
Definition: OntologyTerm.h:295
virtual NMBase * clone() const
Creates and returns a deep copy of this NUMLList.
Definition: NUMLList.cpp:122
virtual const std::string & getId() const
Definition: NMBase.cpp:219
NUMLTypeCode_t
An enumeration of NUML types to help identify NUML objects at runtime.
Definition: NUMLTypeCodes.h:33
std::string ontologyURI
Definition: OntologyTerm.h:298
#define LIBNUML_EXTERN
Begin svn Header.
Definition: extern.h:104
virtual const std::string & getElementName() const =0
Returns the XML element name of this object.
Implementation of the Visitor design pattern, for operations on NUML objects.
Definition: NUMLVisitor.h:72
namespace class
Definition: NUMLNamespaces.h:46
std::string term
Definition: OntologyTerm.h:296
std::string mId
Definition: OntologyTerm.h:275
virtual NUMLTypeCode_t getTypeCode() const
Returns the libnuml type code for this object.
Definition: NMBase.cpp:623
ontology terms store information about what individual elements represents
Definition: OntologyTerm.h:44
virtual NUMLTypeCode_t getTypeCode() const
Returns the libNUML type code for this NUML object.
Definition: OntologyTerm.h:331
#define END_C_DECLS
Definition: extern.h:113
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:2134
virtual bool accept(NUMLVisitor &v) const =0
Accepts the given NUMLVisitor for this instance of NMBase.
#define LIBNUML_CPP_NAMESPACE_END
Definition: libnuml-namespace.h:72
virtual int setId(const std::string &sid)
Definition: NMBase.cpp:412
virtual int getElementPosition() const
The NUML XML Schema is written such that the order of child elements is significant.
Definition: NMBase.cpp:2040
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:2159
std::string sourceTermId
Definition: OntologyTerm.h:297
virtual NMBase * clone() const =0
Creates and returns a deep copy of this NMBase object.