libNuML
1.1.1
Library for reading / writing NuML documents
|
Go to the documentation of this file.
24 #ifndef ONTOLOGYTERM_H_
25 #define ONTOLOGYTERM_H_
39 LIBNUML_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;
478 virtual NMBase*
createObject (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream& stream);
484 LIBNUML_CPP_NAMESPACE_END
490 LIBNUML_CPP_NAMESPACE_BEGIN
496 LIBNUML_CPP_NAMESPACE_END
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 BEGIN_C_DECLS
Definition: extern.h:112
This is the base class for all numl objects.
Definition: NMBase.h:71
std::string sourceTermId
Definition: OntologyTerm.h:297
std::string mOntologyURI
Definition: OntologyTerm.h:278
namespace class
Definition: NUMLNamespaces.h:47
#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.
std::string ontologyURI
Definition: OntologyTerm.h:298
virtual bool accept(NUMLVisitor &v) const =0
Accepts the given NUMLVisitor for this instance of NMBase.
ontology terms store information about what individual elements represents
Definition: OntologyTerm.h:44
std::string mTerm
Definition: OntologyTerm.h:276
@ NUML_NUMLLIST
Definition: NUMLTypeCodes.h:52
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 int setId(const std::string &sid)
Definition: NMBase.cpp:413
#define END_C_DECLS
Definition: extern.h:113
std::string term
Definition: OntologyTerm.h:296
virtual const NMBase * get(unsigned int n) const
Get an item from the list.
Definition: NUMLList.cpp:156
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
NUMLTypeCode_t
An enumeration of NUML types to help identify NUML objects at runtime.
Definition: NUMLTypeCodes.h:34
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 & getId() const
Definition: NMBase.cpp:220
virtual NUMLTypeCode_t getTypeCode() const
Returns the libnuml type code for this object.
Definition: NMBase.cpp:624
Parent class for the various NUML list classes e.g. Operations, Result, ResultComponent etc.
Definition: NUMLList.h:45
virtual NUMLTypeCode_t getTypeCode() const
Returns the libNUML type code for this NUML object.
Definition: OntologyTerm.h:331
Definition: OntologyTerm.h:295
virtual NMBase * clone() const
Creates and returns a deep copy of this NUMLList.
Definition: NUMLList.cpp:122
virtual NUMLTypeCode_t getItemTypeCode() const
Get the type code of the objects contained in this NUMLList.
Definition: NUMLList.cpp:361
virtual NMBase * remove(unsigned int n)
Removes the nth item from this NUMLList items and returns a pointer to it.
Definition: NUMLList.cpp:233
std::string mId
Definition: OntologyTerm.h:275
virtual NMBase * clone() const =0
Creates and returns a deep copy of this NMBase object.
Implementation of the Visitor design pattern, for operations on NUML objects.
Definition: NUMLVisitor.h:73
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
Definition: OntologyTerm.h:301
std::string mSourceTermId
Definition: OntologyTerm.h:277