libsbmlcs.XMLToken.clearNamespaces C# (CSharp) Method

clearNamespaces() public method

public clearNamespaces ( ) : int
return int
        public int clearNamespaces()
        {
            int ret = libsbmlPINVOKE.XMLToken_clearNamespaces(swigCPtr);
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_XMLToken_newSetters_clearNamespaces1()
 {
     XMLTriple triple = new  XMLTriple("test","","");
       XMLAttributes attr = new  XMLAttributes();
       XMLToken token = new  XMLToken(triple,attr);
       XMLNamespaces ns = new  XMLNamespaces();
       assertTrue( token.getNamespacesLength() == 0 );
       assertTrue( token.isNamespacesEmpty() == true );
       ns.add( "http://test1.org/", "test1");
       int i = token.setNamespaces(ns);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( token.getNamespacesLength() == 1 );
       assertTrue( token.isNamespacesEmpty() == false );
       i = token.clearNamespaces();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( token.getNamespacesLength() == 0 );
       assertTrue( token.isNamespacesEmpty() == true );
       attr = null;
       triple = null;
       token = null;
       ns = null;
 }
All Usage Examples Of libsbmlcs.XMLToken::clearNamespaces