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

Class DocBuilder

DevIL-docs/DocBuilder.java:9–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import org.xml.sax.helpers.*;
8
9public class DocBuilder extends DefaultHandler {
10 private String content = null;
11 public int flag = 0;
12
13 private PrintStream out = null;
14 private Stack xml_trace = new Stack();
15 private int entity_type;
16 private int content_type = 0;
17 private Entity container;
18 private Vector sets = new Vector();
19 private Set current_set;
20
21 private Links current_link;
22
23 class NamedObject {
24 String name = null;
25 }
26
27 class Entity extends NamedObject {
28 String description = null;
29 }
30
31 class LinkedEntity extends Entity {
32 Vector links = new Vector();
33 //links
34 };
35
36 class Value extends LinkedEntity {
37 };
38
39 class Function extends LinkedEntity {
40 String ret = null;
41 Vector param = new Vector();
42 };
43
44 class Param extends Entity {
45 String type = null;
46 }
47
48 class Link extends NamedObject {
49 String from;
50 String description;
51 };
52
53 class Links extends NamedObject {
54 Vector links = new Vector();
55 String verbose;
56 };
57
58 class Set extends NamedObject {
59 Vector entity = new Vector();
60 };
61
62 public void startElement(String uri, String localName, String rawName, Attributes attributes) {
63 xml_trace.push(new String(rawName));
64 switch (flag) {
65 case 0://DOC
66 if (rawName.compareToIgnoreCase("doc") == 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected