libsbml.XMLToken.clearAttributes C# (CSharp) Method

clearAttributes() public method

public clearAttributes ( ) : int
return int
        public int clearAttributes()
        {
            int ret = libsbmlPINVOKE.XMLToken_clearAttributes(swigCPtr);
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_XMLToken_newSetters_clearAttributes1()
 {
     XMLTriple triple = new  XMLTriple("test","","");
       XMLAttributes attr = new  XMLAttributes();
       XMLToken token = new  XMLToken(triple,attr);
       XMLAttributes nattr = new  XMLAttributes();
       XMLTriple xt1 = new  XMLTriple("name1", "http://name1.org/", "p1");
       nattr.add(xt1, "val1");
       int i = token.setAttributes(nattr);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( token.isAttributesEmpty() == false );
       i = token.clearAttributes();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( token.isAttributesEmpty() == true );
       nattr = null;
       attr = null;
       triple = null;
       token = null;
       xt1 = null;
 }
All Usage Examples Of libsbml.XMLToken::clearAttributes