getTypeCode() public method

public getTypeCode ( ) : int
return int
Exemplo n.º 1
0
 public void test_UnitDefinition_createWithNS()
 {
     XMLNamespaces xmlns = new  XMLNamespaces();
       xmlns.add( "http://www.sbml.org", "testsbml");
       SBMLNamespaces sbmlns = new  SBMLNamespaces(2,1);
       sbmlns.addNamespaces(xmlns);
       UnitDefinition object1 = new  UnitDefinition(sbmlns);
       assertTrue( object1.getTypeCode() == libsbml.SBML_UNIT_DEFINITION );
       assertTrue( object1.getMetaId() == "" );
       assertTrue( object1.getNotes() == null );
       assertTrue( object1.getAnnotation() == null );
       assertTrue( object1.getLevel() == 2 );
       assertTrue( object1.getVersion() == 1 );
       assertTrue( object1.getNamespaces() != null );
       assertTrue( object1.getNamespaces().getLength() == 2 );
       object1 = null;
 }
Exemplo n.º 2
0
 public void test_UnitDefinition_createWithName()
 {
     UnitDefinition ud = new  UnitDefinition(2,4);
       ud.setName( "mmol_per_liter_per_sec");
       assertTrue( ud.getTypeCode() == libsbml.SBML_UNIT_DEFINITION );
       assertTrue( ud.getMetaId() == "" );
       assertTrue( ud.getNotes() == null );
       assertTrue( ud.getAnnotation() == null );
       assertTrue( ud.getId() == "" );
       assertTrue((  "mmol_per_liter_per_sec" == ud.getName() ));
       assertEquals( true, ud.isSetName() );
       assertTrue( ud.getNumUnits() == 0 );
       ud = null;
 }