libsbml.XMLToken.setAttributes C# (CSharp) Method

setAttributes() public method

public setAttributes ( XMLAttributes attributes ) : int
attributes XMLAttributes
return int
        public int setAttributes(XMLAttributes attributes)
        {
            int ret = libsbmlPINVOKE.XMLToken_setAttributes(swigCPtr, XMLAttributes.getCPtr(attributes));
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_XMLToken_newSetters_setAttributes2()
 {
     XMLTriple triple = new  XMLTriple("test","","");
       XMLToken token = new  XMLToken(triple);
       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_INVALID_XML_OPERATION );
       assertTrue( token.isAttributesEmpty() == true );
       nattr = null;
       triple = null;
       token = null;
       xt1 = null;
 }
All Usage Examples Of libsbml.XMLToken::setAttributes