CVTerm clone() { IntPtr cPtr = libsbmlPINVOKE.CVTerm_clone(swigCPtr); CVTerm ret = (cPtr == IntPtr.Zero) ? null : new CVTerm(cPtr, true); return(ret); }
public void test_SBase_addCVTerms() { CVTerm cv = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_ENCODES); cv.addResource( "foo"); int i = S.addCVTerm(cv); assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE ); assertTrue( S.getNumCVTerms() == 0 ); S.setMetaId( "_id"); i = S.addCVTerm(cv); assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS ); assertTrue( S.getNumCVTerms() == 1 ); assertTrue( S.getCVTerms() != null ); i = S.addCVTerm(null); assertTrue( i == libsbml.LIBSBML_OPERATION_FAILED ); assertTrue( S.getNumCVTerms() == 1 ); assertTrue( S.getCVTerms() != null ); CVTerm cv2 = new CVTerm(libsbml.MODEL_QUALIFIER); i = S.addCVTerm(cv2); assertTrue( i == libsbml.LIBSBML_INVALID_OBJECT ); assertTrue( S.getNumCVTerms() == 1 ); assertTrue( S.getCVTerms() != null ); cv = null; cv2 = null; }
CVTerm(CVTerm orig) : this(libsbmlPINVOKE.new_CVTerm__SWIG_3(CVTerm.getCPtr(orig)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) { throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); } }
public void test_CVTerm_create() { CVTerm term = new CVTerm(libsbml.MODEL_QUALIFIER); assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); term = null; }
public CVTerm remove(uint n) { IntPtr cPtr = libsbmlPINVOKE.CVTermList_remove(swigCPtr, n); CVTerm ret = (cPtr == IntPtr.Zero) ? null : new CVTerm(cPtr, false); return(ret); }
internal static HandleRef getCPtrAndDisown(CVTerm obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return(ptr); }
public void test_Validation_CVTerm2() { CVTerm cv = new CVTerm(); assertTrue( cv != null ); assertEquals( false, (cv.hasRequiredAttributes()) ); cv.setQualifierType(libsbml.BIOLOGICAL_QUALIFIER); assertEquals( false, (cv.hasRequiredAttributes()) ); cv.setBiologicalQualifierType(libsbml.BQB_IS); assertEquals( false, (cv.hasRequiredAttributes()) ); cv.addResource("ggg"); assertEquals( true, (cv.hasRequiredAttributes()) ); cv = null; }
public void test_Validation_CVTerm1() { CVTerm cv = new CVTerm(); assertTrue( cv != null ); assertEquals( false, (cv.hasRequiredAttributes()) ); cv.setQualifierType(libsbml.MODEL_QUALIFIER); assertEquals( false, (cv.hasRequiredAttributes()) ); cv.setModelQualifierType(libsbml.BQM_IS); assertEquals( false, (cv.hasRequiredAttributes()) ); cv.addResource("ggg"); assertEquals( true, (cv.hasRequiredAttributes()) ); cv = null; }
public void test_CVTerm_copyConstructor() { CVTerm CVTerm1 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); CVTerm1.addResource("http://www.geneontology.org/#GO:0005892"); assertTrue( CVTerm1.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER ); assertTrue( CVTerm1.getResources().getLength() == 1 ); assertTrue( CVTerm1.getResources().getValue(0) == "http://www.geneontology.org/#GO:0005892" ); CVTerm CVTerm2 = new CVTerm(CVTerm1); assertTrue( CVTerm2.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER ); assertTrue( CVTerm2.getResources().getLength() == 1 ); assertTrue( CVTerm2.getResources().getValue(0) == "http://www.geneontology.org/#GO:0005892" ); CVTerm2 = null; CVTerm1 = null; }
public void test_CVTerm_addResource() { CVTerm term = new CVTerm(libsbml.MODEL_QUALIFIER); string resource = "GO6666"; XMLAttributes xa; assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); term.addResource(resource); xa = term.getResources(); assertTrue( xa.getLength() == 1 ); assertTrue(( "rdf:resource" == xa.getName(0) )); assertTrue(( "GO6666" == xa.getValue(0) )); term = null; }
public void test_SBase_addCVTerms() { CVTerm cv = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_ENCODES); cv.addResource( "foo"); S.setMetaId( "sbase1"); S.addCVTerm(cv); assertTrue( S.getNumCVTerms() == 1 ); assertTrue( S.getCVTerms() != null ); XMLAttributes res = S.getCVTerm(0).getResources(); assertTrue(( "foo" == res.getValue(0) )); CVTerm cv1 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv1.setBiologicalQualifierType(libsbml.BQB_IS); cv1.addResource( "bar"); S.addCVTerm(cv1); assertTrue( S.getNumCVTerms() == 2 ); CVTerm cv2 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv2.setBiologicalQualifierType(libsbml.BQB_IS); cv2.addResource( "bar1"); S.addCVTerm(cv2); assertTrue( S.getNumCVTerms() == 2 ); res = S.getCVTerm(1).getResources(); assertTrue( res.getLength() == 2 ); assertTrue(( "bar" == res.getValue(0) )); assertTrue(( "bar1" == res.getValue(1) )); CVTerm cv4 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv4.setBiologicalQualifierType(libsbml.BQB_IS); cv4.addResource( "bar1"); S.addCVTerm(cv4); assertTrue( S.getNumCVTerms() == 2 ); res = S.getCVTerm(1).getResources(); assertTrue( res.getLength() == 2 ); assertTrue(( "bar" == res.getValue(0) )); assertTrue(( "bar1" == res.getValue(1) )); CVTerm cv5 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv5.setBiologicalQualifierType(libsbml.BQB_HAS_PART); cv5.addResource( "bar1"); S.addCVTerm(cv5); assertTrue( S.getNumCVTerms() == 2 ); res = S.getCVTerm(1).getResources(); assertTrue( res.getLength() == 2 ); assertTrue(( "bar" == res.getValue(0) )); assertTrue(( "bar1" == res.getValue(1) )); cv = null; cv2 = null; cv1 = null; cv4 = null; }
public void test_CVTerm_removeResource() { CVTerm term = new CVTerm(libsbml.MODEL_QUALIFIER); string resource = "GO6666"; XMLAttributes xa; assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); term.addResource(resource); xa = term.getResources(); assertTrue( xa.getLength() == 1 ); int i = term.removeResource( "CCC"); assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE ); xa = term.getResources(); assertTrue( xa.getLength() == 1 ); i = term.removeResource(resource); assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS ); xa = term.getResources(); assertTrue( xa.getLength() == 0 ); term = null; }
public void test_CVTerm_createFromNode() { XMLAttributes xa; XMLTriple qual_triple = new XMLTriple("is", "", "bqbiol"); XMLTriple bag_triple = new XMLTriple(); XMLTriple li_triple = new XMLTriple(); XMLAttributes att = new XMLAttributes(); att.add( "", "This is my resource"); XMLAttributes att1 = new XMLAttributes(); XMLToken li_token = new XMLToken(li_triple,att); XMLToken bag_token = new XMLToken(bag_triple,att1); XMLToken qual_token = new XMLToken(qual_triple,att1); XMLNode li = new XMLNode(li_token); XMLNode bag = new XMLNode(bag_token); XMLNode node = new XMLNode(qual_token); bag.addChild(li); node.addChild(bag); CVTerm term = new CVTerm(node); assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER ); assertTrue( term.getBiologicalQualifierType() == libsbml.BQB_IS ); xa = term.getResources(); assertTrue( xa.getLength() == 1 ); assertTrue(( "rdf:resource" == xa.getName(0) )); assertTrue(( "This is my resource" == xa.getValue(0) )); qual_triple = null; bag_triple = null; li_triple = null; li_token = null; bag_token = null; qual_token = null; att = null; att1 = null; term = null; node = null; bag = null; li = null; }
/** * Copy constructor; creates a copy of a CVTerm object. * * @param orig the CVTerm instance to copy. */ public CVTerm(CVTerm orig) : this(libsbmlPINVOKE.new_CVTerm__SWIG_3(CVTerm.getCPtr(orig)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); }
public void prepend(CVTerm item) { libsbmlPINVOKE.CVTermList_prepend(swigCPtr, CVTerm.getCPtr(item)); }
public void test_CVTerm_set_get() { CVTerm term = new CVTerm(libsbml.MODEL_QUALIFIER); assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); term.setModelQualifierType(libsbml.BQM_IS); assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); assertTrue( term.getModelQualifierType() == libsbml.BQM_IS ); term.setQualifierType(libsbml.BIOLOGICAL_QUALIFIER); term.setBiologicalQualifierType(libsbml.BQB_IS); assertTrue( term.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER ); assertTrue( term.getBiologicalQualifierType() == libsbml.BQB_IS ); term = null; }
public void test_SBase_unsetCVTerms() { CVTerm cv = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_ENCODES); cv.addResource( "foo"); S.setMetaId( "sbase1"); S.addCVTerm(cv); CVTerm cv1 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv1.setBiologicalQualifierType(libsbml.BQB_IS); cv1.addResource( "bar"); S.addCVTerm(cv1); CVTerm cv2 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv2.setBiologicalQualifierType(libsbml.BQB_IS); cv2.addResource( "bar1"); S.addCVTerm(cv2); CVTerm cv4 = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv4.setBiologicalQualifierType(libsbml.BQB_IS); cv4.addResource( "bar1"); S.addCVTerm(cv4); assertTrue( S.getNumCVTerms() == 2 ); S.unsetCVTerms(); assertTrue( S.getNumCVTerms() == 0 ); assertTrue( S.getCVTerms() == null ); cv = null; cv2 = null; cv1 = null; cv4 = null; }
public void test_SBase_unsetAnnotationWithCVTerms() { CVTerm cv; string annt = "<annotation>\n" + " <test:test xmlns:test=\"http://test.org/test\">this is a test node</test:test>\n" + "</annotation>"; string annt_with_cvterm = "<annotation>\n" + " <test:test xmlns:test=\"http://test.org/test\">this is a test node</test:test>\n" + " <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" " + "xmlns:dc=\"http://purl.org/dc/elements/1.1/\" " + "xmlns:dcterms=\"http://purl.org/dc/terms/\" " + "xmlns:vCard=\"http://www.w3.org/2001/vcard-rdf/3.0#\" " + "xmlns:bqbiol=\"http://biomodels.net/biology-qualifiers/\" " + "xmlns:bqmodel=\"http://biomodels.net/model-qualifiers/\">\n" + " <rdf:Description rdf:about=\"#_000001\">\n" + " <bqbiol:is>\n" + " <rdf:Bag>\n" + " <rdf:li rdf:resource=\"http://www.geneontology.org/#GO:0005895\"/>\n" + " </rdf:Bag>\n" + " </bqbiol:is>\n" + " </rdf:Description>\n" + " </rdf:RDF>\n" + "</annotation>"; S.setAnnotation(annt); assertTrue( S.isSetAnnotation() == true ); assertTrue(( annt == S.getAnnotationString() )); S.unsetAnnotation(); assertTrue( S.isSetAnnotation() == false ); assertTrue( S.getAnnotation() == null ); S.setAnnotation(annt); S.setMetaId( "_000001"); cv = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_IS); cv.addResource( "http://www.geneontology.org/#GO:0005895"); S.addCVTerm(cv); assertTrue( S.isSetAnnotation() == true ); assertTrue(( annt_with_cvterm == S.getAnnotationString() )); S.unsetAnnotation(); assertTrue( S.isSetAnnotation() == false ); assertTrue( S.getAnnotation() == null ); cv = null; }
public void test_SBase_getQualifiersFromResources() { CVTerm cv = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_ENCODES); cv.addResource( "foo"); S.setMetaId( "sbase1"); S.addCVTerm(cv); assertTrue( S.getResourceBiologicalQualifier( "foo") == libsbml.BQB_ENCODES ); CVTerm cv1 = new CVTerm(libsbml.MODEL_QUALIFIER); cv1.setModelQualifierType(libsbml.BQM_IS); cv1.addResource( "bar"); S.addCVTerm(cv1); assertTrue( S.getResourceModelQualifier( "bar") == libsbml.BQM_IS ); cv = null; cv1 = null; }
public void test_SBase_CVTerms() { CVTerm cv = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_IS); cv.addResource( "foo"); assertTrue( S.getNumCVTerms() == 0 ); assertTrue( S.getCVTerms() == null ); S.setMetaId( "_id"); S.addCVTerm(cv); assertTrue( S.getNumCVTerms() == 1 ); assertTrue( S.getCVTerms() != null ); assertTrue( S.getCVTerm(0) != cv ); cv = null; }
public void test_RDFAnnotation2_modelWithHistoryAndCVTerms() { ModelHistory h = new ModelHistory(); ModelCreator c = new ModelCreator(); c.setFamilyName("Keating"); c.setGivenName("Sarah"); h.addCreator(c); Date d = new Date(2008,11,17,18,37,0,0,0,0); h.setCreatedDate(d); h.setModifiedDate(d); m2.unsetModelHistory(); m2.setModelHistory(h); CVTerm cv = new CVTerm(); cv.setQualifierType(libsbml.BIOLOGICAL_QUALIFIER); cv.setBiologicalQualifierType(libsbml.BQB_IS_VERSION_OF); cv.addResource("http://www.geneontology.org/#GO:0005892"); m2.addCVTerm(cv); XMLNode ann = RDFAnnotationParser.parseModelHistory(m2); string expected = "<annotation>\n" + " <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:dcterms=\"http://purl.org/dc/terms/\" xmlns:vCard=\"http://www.w3.org/2001/vcard-rdf/3.0#\" xmlns:bqbiol=\"http://biomodels.net/biology-qualifiers/\" xmlns:bqmodel=\"http://biomodels.net/model-qualifiers/\">\n" + " <rdf:Description rdf:about=\"#_000001\">\n" + " <dc:creator rdf:parseType=\"Resource\">\n" + " <rdf:Bag>\n" + " <rdf:li rdf:parseType=\"Resource\">\n" + " <vCard:N rdf:parseType=\"Resource\">\n" + " <vCard:Family>Keating</vCard:Family>\n" + " <vCard:Given>Sarah</vCard:Given>\n" + " </vCard:N>\n" + " </rdf:li>\n" + " </rdf:Bag>\n" + " </dc:creator>\n" + " <dcterms:created rdf:parseType=\"Resource\">\n" + " <dcterms:W3CDTF>2008-11-17T18:37:00Z</dcterms:W3CDTF>\n" + " </dcterms:created>\n" + " <dcterms:modified rdf:parseType=\"Resource\">\n" + " <dcterms:W3CDTF>2008-11-17T18:37:00Z</dcterms:W3CDTF>\n" + " </dcterms:modified>\n" + " <bqbiol:isVersionOf>\n" + " <rdf:Bag>\n" + " <rdf:li rdf:resource=\"http://www.geneontology.org/#GO:0005892\"/>\n" + " </rdf:Bag>\n" + " </bqbiol:isVersionOf>\n" + " </rdf:Description>\n" + " </rdf:RDF>\n" + "</annotation>"; if (ann != null); { assertEquals( true, equals(expected,ann.toXMLString()) ); } { } }
/** * Adds a copy of the given CVTerm object to this SBML object. * * @param term the CVTerm to assign. * * @param newBag if @c true, creates a new RDF bag with the same identifier * as a previous bag, and if @c false, adds the term to an existing * RDF bag with the same type of qualifier as the term being added. * * * @return integer value indicating success/failure of the * function. @if clike The value is drawn from the * enumeration #OperationReturnValues_t. @endif The possible values * returned by this function are: * @li @link libsbml#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS@endlink * @li @link libsbml#LIBSBML_OPERATION_FAILED LIBSBML_OPERATION_FAILED@endlink * @li @link libsbml#LIBSBML_UNEXPECTED_ATTRIBUTE LIBSBML_UNEXPECTED_ATTRIBUTE@endlink, if * this object lacks a 'metaid' attribute * @li @link libsbml#LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT@endlink * * @note Since the CV Term uses the 'metaid' attribute of the object as a * reference, if the object has no 'metaid' attribute value set, then the * CVTerm will not be added. * * * @note This method should be used with some caution. The fact that this * method @em copies the object passed to it means that the caller will be * left holding a physically different object instance than the one contained * inside this object. Changes made to the original object instance (such as * resetting attribute values) will <em>not affect the instance in this * object</em>. In addition, the caller should make sure to free the * original object if it is no longer being used, or else a memory leak will * result. Please see other methods on this class (particularly a * corresponding method whose name begins with the word <code>create</code>) * for alternatives that do not lead to these issues. * * * * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif */ public int addCVTerm(CVTerm term) { int ret = libsbmlPINVOKE.SBase_addCVTerm__SWIG_1(swigCPtr, CVTerm.getCPtr(term)); return ret; }
/** * Adds a copy of the given CVTerm object to this SBML object. * * @param term the CVTerm to assign. * * @param newBag if @c true, creates a new RDF bag with the same identifier * as a previous bag, and if @c false, adds the term to an existing * RDF bag with the same type of qualifier as the term being added. * * * @return integer value indicating success/failure of the * function. @if clike The value is drawn from the * enumeration #OperationReturnValues_t. @endif The possible values * returned by this function are: * @li @link libsbml#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS@endlink * @li @link libsbml#LIBSBML_OPERATION_FAILED LIBSBML_OPERATION_FAILED@endlink * @li @link libsbml#LIBSBML_UNEXPECTED_ATTRIBUTE LIBSBML_UNEXPECTED_ATTRIBUTE@endlink, if * this object lacks a 'metaid' attribute * @li @link libsbml#LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT@endlink * * @note Since the CV Term uses the 'metaid' attribute of the object as a * reference, if the object has no 'metaid' attribute value set, then the * CVTerm will not be added. * * * @note This method should be used with some caution. The fact that this * method @em copies the object passed to it means that the caller will be * left holding a physically different object instance than the one contained * inside this object. Changes made to the original object instance (such as * resetting attribute values) will <em>not affect the instance in this * object</em>. In addition, the caller should make sure to free the * original object if it is no longer being used, or else a memory leak will * result. Please see other methods on this class (particularly a * corresponding method whose name begins with the word <code>create</code>) * for alternatives that do not lead to these issues. * * * * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif */ public int addCVTerm(CVTerm term, bool newBag) { int ret = libsbmlPINVOKE.SBase_addCVTerm__SWIG_0(swigCPtr, CVTerm.getCPtr(term), newBag); return ret; }
public void test_CVTerm_getResources() { CVTerm term = new CVTerm(libsbml.MODEL_QUALIFIER); string resource = "GO6666"; string resource1 = "OtherURI"; long number; term.addResource(resource); term.addResource(resource1); number = term.getNumResources(); assertTrue( number == 2 ); assertTrue(( "GO6666" == term.getResourceURI(0) )); assertTrue(( "OtherURI" == term.getResourceURI(1) )); term = null; }
internal static HandleRef getCPtr(CVTerm obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
internal static HandleRef getCPtr(CVTerm obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
internal static HandleRef getCPtrAndDisown(CVTerm obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; }
public void test_CVTerm_setBiolQualifierType() { CVTerm term = new CVTerm(libsbml.BIOLOGICAL_QUALIFIER); assertTrue( term != null ); assertTrue( term.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER ); assertTrue( term.getModelQualifierType() == libsbml.BQM_UNKNOWN ); assertTrue( term.getBiologicalQualifierType() == libsbml.BQB_UNKNOWN ); int i = term.setBiologicalQualifierType(libsbml.BQB_IS); assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS ); assertTrue( term.getQualifierType() == libsbml.BIOLOGICAL_QUALIFIER ); assertTrue( term.getBiologicalQualifierType() == libsbml.BQB_IS ); assertTrue( term.getModelQualifierType() == libsbml.BQM_UNKNOWN ); i = term.setQualifierType(libsbml.MODEL_QUALIFIER); assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); assertTrue( term.getModelQualifierType() == libsbml.BQM_UNKNOWN ); assertTrue( term.getBiologicalQualifierType() == libsbml.BQB_UNKNOWN ); i = term.setBiologicalQualifierType(libsbml.BQB_IS); assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE ); assertTrue( term.getQualifierType() == libsbml.MODEL_QUALIFIER ); assertTrue( term.getModelQualifierType() == libsbml.BQM_UNKNOWN ); assertTrue( term.getBiologicalQualifierType() == libsbml.BQB_UNKNOWN ); term = null; }
/** * Adds a copy of the given CVTerm object to the list of nested CVTerm * objects within this CVTerm object. * * @param term the CVTerm to assign. * * * @return integer value indicating success/failure of the * function. @if clike The value is drawn from the * enumeration #OperationReturnValues_t. @endif The possible values * returned by this function are: * @li @link libsbml#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS@endlink * @li @link libsbml#LIBSBML_OPERATION_FAILED LIBSBML_OPERATION_FAILED@endlink * @li @link libsbml#LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT@endlink */ public int addNestedCVTerm(CVTerm term) { int ret = libsbmlPINVOKE.CVTerm_addNestedCVTerm(swigCPtr, CVTerm.getCPtr(term)); return ret; }