libsbmlcs.XMLNamespaces.add C# (CSharp) Method

add() public method

public add ( string uri ) : int
uri string
return int
        public int add(string uri)
        {
            int ret = libsbmlPINVOKE.XMLNamespaces_add__SWIG_1(swigCPtr, uri);
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }

Same methods

XMLNamespaces::add ( string uri, string prefix ) : int

Usage Example

コード例 #1
0
 public void test_L3_LocalParameter_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(3,1);
       sbmlns.addNamespaces(xmlns);
       LocalParameter p = new  LocalParameter(sbmlns);
       assertTrue( p.getTypeCode() == libsbml.SBML_LOCAL_PARAMETER );
       assertTrue( p.getMetaId() == "" );
       assertTrue( p.getNotes() == null );
       assertTrue( p.getAnnotation() == null );
       assertTrue( p.getLevel() == 3 );
       assertTrue( p.getVersion() == 1 );
       assertTrue( p.getNamespaces() != null );
       assertTrue( p.getNamespaces().getLength() == 2 );
       assertTrue( p.getId() == "" );
       assertTrue( p.getName() == "" );
       assertTrue( p.getUnits() == "" );
       assertEquals( true, double.IsNaN(p.getValue()) );
       assertEquals( false, p.isSetId() );
       assertEquals( false, p.isSetName() );
       assertEquals( false, p.isSetValue() );
       assertEquals( false, p.isSetUnits() );
       p = null;
 }
All Usage Examples Of libsbmlcs.XMLNamespaces::add