1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_xml_dom_ls_SAXEventSink__
|
5 |
|
|
#define __gnu_xml_dom_ls_SAXEventSink__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace xml
|
17 |
|
|
{
|
18 |
|
|
namespace dom
|
19 |
|
|
{
|
20 |
|
|
class DomDocument;
|
21 |
|
|
namespace ls
|
22 |
|
|
{
|
23 |
|
|
class SAXEventSink;
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
namespace org
|
29 |
|
|
{
|
30 |
|
|
namespace w3c
|
31 |
|
|
{
|
32 |
|
|
namespace dom
|
33 |
|
|
{
|
34 |
|
|
class Attr;
|
35 |
|
|
class Document;
|
36 |
|
|
class Element;
|
37 |
|
|
class Node;
|
38 |
|
|
class Text;
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
namespace xml
|
42 |
|
|
{
|
43 |
|
|
namespace sax
|
44 |
|
|
{
|
45 |
|
|
class Attributes;
|
46 |
|
|
class Locator;
|
47 |
|
|
class XMLReader;
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
class gnu::xml::dom::ls::SAXEventSink : public ::java::lang::Object
|
54 |
|
|
{
|
55 |
|
|
|
56 |
|
|
public:
|
57 |
|
|
SAXEventSink();
|
58 |
|
|
public: // actually package-private
|
59 |
|
|
virtual void interrupt();
|
60 |
|
|
public:
|
61 |
|
|
virtual ::org::w3c::dom::Document * getDocument();
|
62 |
|
|
virtual void setReader(::org::xml::sax::XMLReader *);
|
63 |
|
|
virtual void setDocumentLocator(::org::xml::sax::Locator *);
|
64 |
|
|
virtual void setNamespaceAware(jboolean);
|
65 |
|
|
virtual void startDocument();
|
66 |
|
|
virtual void endDocument();
|
67 |
|
|
virtual void startPrefixMapping(::java::lang::String *, ::java::lang::String *);
|
68 |
|
|
virtual void endPrefixMapping(::java::lang::String *);
|
69 |
|
|
virtual void startElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *);
|
70 |
|
|
public: // actually protected
|
71 |
|
|
virtual ::org::w3c::dom::Element * createElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *);
|
72 |
|
|
virtual ::org::w3c::dom::Attr * createAttr(::org::xml::sax::Attributes *, jint);
|
73 |
|
|
public:
|
74 |
|
|
virtual void endElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
75 |
|
|
virtual void characters(JArray< jchar > *, jint, jint);
|
76 |
|
|
public: // actually protected
|
77 |
|
|
virtual ::org::w3c::dom::Text * createText(JArray< jchar > *, jint, jint);
|
78 |
|
|
public:
|
79 |
|
|
virtual void ignorableWhitespace(JArray< jchar > *, jint, jint);
|
80 |
|
|
virtual void processingInstruction(::java::lang::String *, ::java::lang::String *);
|
81 |
|
|
public: // actually protected
|
82 |
|
|
virtual ::org::w3c::dom::Node * createProcessingInstruction(::java::lang::String *, ::java::lang::String *);
|
83 |
|
|
public:
|
84 |
|
|
virtual void skippedEntity(::java::lang::String *);
|
85 |
|
|
virtual void startDTD(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
86 |
|
|
public: // actually protected
|
87 |
|
|
virtual ::org::w3c::dom::Node * createDocumentType(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
88 |
|
|
public:
|
89 |
|
|
virtual void endDTD();
|
90 |
|
|
virtual void startEntity(::java::lang::String *);
|
91 |
|
|
virtual void endEntity(::java::lang::String *);
|
92 |
|
|
virtual void startCDATA();
|
93 |
|
|
virtual void endCDATA();
|
94 |
|
|
virtual void comment(JArray< jchar > *, jint, jint);
|
95 |
|
|
public: // actually protected
|
96 |
|
|
virtual ::org::w3c::dom::Node * createComment(JArray< jchar > *, jint, jint);
|
97 |
|
|
public:
|
98 |
|
|
virtual void notationDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
99 |
|
|
virtual void unparsedEntityDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
100 |
|
|
virtual void elementDecl(::java::lang::String *, ::java::lang::String *);
|
101 |
|
|
virtual void attributeDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
102 |
|
|
virtual void internalEntityDecl(::java::lang::String *, ::java::lang::String *);
|
103 |
|
|
virtual void externalEntityDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
104 |
|
|
private:
|
105 |
|
|
static ::java::lang::String * XMLNS_URI;
|
106 |
|
|
static ::java::lang::String * XMLNS_PREFIX;
|
107 |
|
|
static ::java::util::HashSet * PREDEFINED_ENTITIES;
|
108 |
|
|
jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) namespaceAware;
|
109 |
|
|
public: // actually package-private
|
110 |
|
|
jboolean ignoreWhitespace;
|
111 |
|
|
jboolean expandEntityReferences;
|
112 |
|
|
jboolean ignoreComments;
|
113 |
|
|
jboolean coalescing;
|
114 |
|
|
::org::xml::sax::XMLReader * reader;
|
115 |
|
|
::gnu::xml::dom::DomDocument * doc;
|
116 |
|
|
::org::w3c::dom::Node * ctx;
|
117 |
|
|
::java::util::LinkedList * entityCtx;
|
118 |
|
|
::java::util::List * pending;
|
119 |
|
|
::org::xml::sax::Locator * locator;
|
120 |
|
|
jboolean inCDATA;
|
121 |
|
|
jboolean inDTD;
|
122 |
|
|
jboolean interrupted;
|
123 |
|
|
public:
|
124 |
|
|
static ::java::lang::Class class$;
|
125 |
|
|
};
|
126 |
|
|
|
127 |
|
|
#endif // __gnu_xml_dom_ls_SAXEventSink__
|