< prev index next >

test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java

Print this page




 271         List entities = event.getEntities();
 272         if (entities == null) {
 273             _hasEntityDelaration = false;
 274             print("No entity found.");
 275         } else {
 276             _hasEntityDelaration = true;
 277             for (int i = 0; i < entities.size(); i++) {
 278                 EntityDeclaration entity = (EntityDeclaration) entities.get(i);
 279                 print(entity.getName());
 280             }
 281         }
 282 
 283     }
 284 
 285     void print(String s) {
 286         if (DEBUG)
 287             System.out.println(s);
 288     }
 289 
 290 }
 291 


 271         List entities = event.getEntities();
 272         if (entities == null) {
 273             _hasEntityDelaration = false;
 274             print("No entity found.");
 275         } else {
 276             _hasEntityDelaration = true;
 277             for (int i = 0; i < entities.size(); i++) {
 278                 EntityDeclaration entity = (EntityDeclaration) entities.get(i);
 279                 print(entity.getName());
 280             }
 281         }
 282 
 283     }
 284 
 285     void print(String s) {
 286         if (DEBUG)
 287             System.out.println(s);
 288     }
 289 
 290 }

< prev index next >