MCPcopy Create free account
hub / github.com/DentonW/DevIL / getDescription

Method getDescription

DevIL-docs/DocBuilder.java:532–549  ·  view source on GitHub ↗
(String from, String name)

Source from the content-addressed store, hash-verified

530 }
531
532 private final String getDescription(String from, String name) {
533 Enumeration e = sets.elements();
534 while (e.hasMoreElements()) {
535 Set set = (Set) e.nextElement();
536 String setname = set.name;
537 if (setname.compareToIgnoreCase(from) == 0) {
538 Enumeration ee = set.entity.elements();
539 while (ee.hasMoreElements()) {
540 Entity eee = (Entity) ee.nextElement();
541 if (eee.name.compareToIgnoreCase(name) == 0)
542 return eee.description;
543 }
544 }
545 }
546 System.err.println("[Error] !! Missing definition description in " + from + ":" + name);
547 System.exit(1);
548 return null;
549 }
550
551 private final void printHeader(PrintStream out, String title) {
552 out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\"><html><head><title>DevIL Documentation, " + title + "</title></head><body topmargin=\"0\" bgcolor=\"white\"><font face=\"verdana\"><img src=\"../images/DevIL.gif\"><br></font>");

Callers 1

workMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected