public setAttributes ( |
||
attributes | ||
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;
}
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; }