libsbml.XMLNamespaces.getLength C# (CSharp) Method

getLength() public method

public getLength ( ) : int
return int
        public int getLength()
        {
            int ret = libsbmlPINVOKE.XMLNamespaces_getLength(swigCPtr);
            return ret;
        }

Usage Example

Ejemplo n.º 1
0
 public void test_NS_copyConstructor()
 {
     XMLNamespaces ns = new XMLNamespaces();
       ns.add("http://test1.org/", "test1");
       assertTrue( ns.getLength() == 1 );
       assertTrue( ns.isEmpty() == false );
       assertTrue( ns.getPrefix(0) ==  "test1" );
       assertTrue( ns.getURI("test1") ==  "http://test1.org/" );
       XMLNamespaces ns2 = new XMLNamespaces(ns);
       assertTrue( ns2.getLength() == 1 );
       assertTrue( ns2.isEmpty() == false );
       assertTrue( ns2.getPrefix(0) ==  "test1" );
       assertTrue( ns2.getURI("test1") ==  "http://test1.org/" );
       ns2 = null;
       ns = null;
 }