isEmpty() 공개 메소드

public isEmpty ( ) : bool
리턴 bool
예제 #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;
 }