1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_xml_dom_DomDocument__
|
5 |
|
|
#define __gnu_xml_dom_DomDocument__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <gnu/xml/dom/DomNode.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 |
|
|
class DomDocumentConfiguration;
|
22 |
|
|
class DomNode;
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
namespace org
|
27 |
|
|
{
|
28 |
|
|
namespace w3c
|
29 |
|
|
{
|
30 |
|
|
namespace dom
|
31 |
|
|
{
|
32 |
|
|
class Attr;
|
33 |
|
|
class CDATASection;
|
34 |
|
|
class Comment;
|
35 |
|
|
class DOMConfiguration;
|
36 |
|
|
class DOMImplementation;
|
37 |
|
|
class DocumentFragment;
|
38 |
|
|
class DocumentType;
|
39 |
|
|
class Element;
|
40 |
|
|
class EntityReference;
|
41 |
|
|
class Node;
|
42 |
|
|
class ProcessingInstruction;
|
43 |
|
|
class Text;
|
44 |
|
|
namespace traversal
|
45 |
|
|
{
|
46 |
|
|
class NodeFilter;
|
47 |
|
|
class NodeIterator;
|
48 |
|
|
class TreeWalker;
|
49 |
|
|
}
|
50 |
|
|
namespace xpath
|
51 |
|
|
{
|
52 |
|
|
class XPathExpression;
|
53 |
|
|
class XPathNSResolver;
|
54 |
|
|
}
|
55 |
|
|
}
|
56 |
|
|
}
|
57 |
|
|
}
|
58 |
|
|
}
|
59 |
|
|
|
60 |
|
|
class gnu::xml::dom::DomDocument : public ::gnu::xml::dom::DomNode
|
61 |
|
|
{
|
62 |
|
|
|
63 |
|
|
public:
|
64 |
|
|
DomDocument();
|
65 |
|
|
public: // actually protected
|
66 |
|
|
DomDocument(::org::w3c::dom::DOMImplementation *);
|
67 |
|
|
public:
|
68 |
|
|
virtual void setBuilding(jboolean);
|
69 |
|
|
virtual void setCheckWellformedness(jboolean);
|
70 |
|
|
virtual void setCheckingCharacters(jboolean);
|
71 |
|
|
virtual void setDefaultAttributes(jboolean);
|
72 |
|
|
virtual ::java::lang::String * getNodeName();
|
73 |
|
|
virtual ::org::w3c::dom::Element * getDocumentElement();
|
74 |
|
|
virtual ::org::w3c::dom::DocumentType * getDoctype();
|
75 |
|
|
virtual ::org::w3c::dom::DOMImplementation * getImplementation();
|
76 |
|
|
virtual ::org::w3c::dom::Element * getElementById(::java::lang::String *);
|
77 |
|
|
private:
|
78 |
|
|
void checkNewChild(::org::w3c::dom::Node *);
|
79 |
|
|
public:
|
80 |
|
|
virtual ::org::w3c::dom::Node * appendChild(::org::w3c::dom::Node *);
|
81 |
|
|
virtual ::org::w3c::dom::Node * insertBefore(::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
82 |
|
|
virtual ::org::w3c::dom::Node * replaceChild(::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
83 |
|
|
static void verifyXmlName(::java::lang::String *);
|
84 |
|
|
public: // actually package-private
|
85 |
|
|
static void checkName(::java::lang::String *, jboolean);
|
86 |
|
|
static void checkNCName(::java::lang::String *, jboolean);
|
87 |
|
|
static void checkChar(::java::lang::String *, jboolean);
|
88 |
|
|
static void checkChar(JArray< jchar > *, jint, jint, jboolean);
|
89 |
|
|
public:
|
90 |
|
|
virtual ::org::w3c::dom::Element * createElement(::java::lang::String *);
|
91 |
|
|
virtual ::org::w3c::dom::Element * createElementNS(::java::lang::String *, ::java::lang::String *);
|
92 |
|
|
private:
|
93 |
|
|
void setDefaultAttributes(::org::w3c::dom::Element *, ::java::lang::String *);
|
94 |
|
|
public:
|
95 |
|
|
virtual ::org::w3c::dom::DocumentFragment * createDocumentFragment();
|
96 |
|
|
virtual ::org::w3c::dom::Text * createTextNode(::java::lang::String *);
|
97 |
|
|
virtual ::org::w3c::dom::Text * createTextNode(JArray< jchar > *, jint, jint);
|
98 |
|
|
virtual ::org::w3c::dom::Comment * createComment(::java::lang::String *);
|
99 |
|
|
virtual ::org::w3c::dom::CDATASection * createCDATASection(::java::lang::String *);
|
100 |
|
|
virtual ::org::w3c::dom::CDATASection * createCDATASection(JArray< jchar > *, jint, jint);
|
101 |
|
|
virtual ::org::w3c::dom::ProcessingInstruction * createProcessingInstruction(::java::lang::String *, ::java::lang::String *);
|
102 |
|
|
virtual ::org::w3c::dom::Attr * createAttribute(::java::lang::String *);
|
103 |
|
|
virtual ::org::w3c::dom::Attr * createAttributeNS(::java::lang::String *, ::java::lang::String *);
|
104 |
|
|
virtual ::org::w3c::dom::EntityReference * createEntityReference(::java::lang::String *);
|
105 |
|
|
virtual ::org::w3c::dom::Node * importNode(::org::w3c::dom::Node *, jboolean);
|
106 |
|
|
virtual ::org::w3c::dom::traversal::NodeIterator * createNodeIterator(::org::w3c::dom::Node *, jint, ::org::w3c::dom::traversal::NodeFilter *, jboolean);
|
107 |
|
|
virtual ::org::w3c::dom::traversal::TreeWalker * createTreeWalker(::org::w3c::dom::Node *, jint, ::org::w3c::dom::traversal::NodeFilter *, jboolean);
|
108 |
|
|
virtual ::java::lang::String * getInputEncoding();
|
109 |
|
|
virtual void setInputEncoding(::java::lang::String *);
|
110 |
|
|
virtual ::java::lang::String * getXmlEncoding();
|
111 |
|
|
virtual void setXmlEncoding(::java::lang::String *);
|
112 |
|
|
virtual jboolean getXmlStandalone();
|
113 |
|
|
virtual void setXmlStandalone(jboolean);
|
114 |
|
|
virtual ::java::lang::String * getXmlVersion();
|
115 |
|
|
virtual void setXmlVersion(::java::lang::String *);
|
116 |
|
|
virtual jboolean getStrictErrorChecking();
|
117 |
|
|
virtual void setStrictErrorChecking(jboolean);
|
118 |
|
|
virtual ::java::lang::String * lookupPrefix(::java::lang::String *);
|
119 |
|
|
virtual jboolean isDefaultNamespace(::java::lang::String *);
|
120 |
|
|
virtual ::java::lang::String * lookupNamespaceURI(::java::lang::String *);
|
121 |
|
|
virtual ::java::lang::String * getBaseURI();
|
122 |
|
|
virtual ::java::lang::String * getDocumentURI();
|
123 |
|
|
virtual void setDocumentURI(::java::lang::String *);
|
124 |
|
|
virtual ::org::w3c::dom::Node * adoptNode(::org::w3c::dom::Node *);
|
125 |
|
|
public: // actually package-private
|
126 |
|
|
virtual void adoptChildren(::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
127 |
|
|
virtual void adoptAttributes(::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
128 |
|
|
public:
|
129 |
|
|
virtual ::org::w3c::dom::DOMConfiguration * getDomConfig();
|
130 |
|
|
virtual jboolean isEqualNode(::org::w3c::dom::Node *);
|
131 |
|
|
virtual void normalizeDocument();
|
132 |
|
|
public: // actually package-private
|
133 |
|
|
virtual void normalizeNode(::gnu::xml::dom::DomNode *);
|
134 |
|
|
public:
|
135 |
|
|
virtual ::org::w3c::dom::Node * renameNode(::org::w3c::dom::Node *, ::java::lang::String *, ::java::lang::String *);
|
136 |
|
|
virtual ::org::w3c::dom::xpath::XPathExpression * createExpression(::java::lang::String *, ::org::w3c::dom::xpath::XPathNSResolver *);
|
137 |
|
|
virtual ::org::w3c::dom::xpath::XPathNSResolver * createNSResolver(::org::w3c::dom::Node *);
|
138 |
|
|
virtual ::java::lang::Object * evaluate(::java::lang::String *, ::org::w3c::dom::Node *, ::org::w3c::dom::xpath::XPathNSResolver *, jshort, ::java::lang::Object *);
|
139 |
|
|
private:
|
140 |
|
|
::org::w3c::dom::DOMImplementation * __attribute__((aligned(__alignof__( ::gnu::xml::dom::DomNode)))) implementation;
|
141 |
|
|
jboolean checkingCharacters;
|
142 |
|
|
public: // actually package-private
|
143 |
|
|
jboolean checkingWellformedness;
|
144 |
|
|
private:
|
145 |
|
|
jboolean defaultAttributes;
|
146 |
|
|
public: // actually package-private
|
147 |
|
|
jboolean building;
|
148 |
|
|
::gnu::xml::dom::DomDocumentConfiguration * config;
|
149 |
|
|
::java::lang::String * inputEncoding;
|
150 |
|
|
::java::lang::String * encoding;
|
151 |
|
|
::java::lang::String * version;
|
152 |
|
|
jboolean standalone;
|
153 |
|
|
::java::lang::String * systemId;
|
154 |
|
|
public:
|
155 |
|
|
static ::java::lang::Class class$;
|
156 |
|
|
};
|
157 |
|
|
|
158 |
|
|
#endif // __gnu_xml_dom_DomDocument__
|