1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_xml_transform_Stylesheet__
|
5 |
|
|
#define __gnu_xml_transform_Stylesheet__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace gnu
|
13 |
|
|
{
|
14 |
|
|
namespace xml
|
15 |
|
|
{
|
16 |
|
|
namespace transform
|
17 |
|
|
{
|
18 |
|
|
class Bindings;
|
19 |
|
|
class Stylesheet;
|
20 |
|
|
class Template;
|
21 |
|
|
class TemplateNode;
|
22 |
|
|
class TransformerFactoryImpl;
|
23 |
|
|
class TransformerImpl;
|
24 |
|
|
}
|
25 |
|
|
namespace xpath
|
26 |
|
|
{
|
27 |
|
|
class NameTest;
|
28 |
|
|
class XPathImpl;
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
namespace javax
|
33 |
|
|
{
|
34 |
|
|
namespace xml
|
35 |
|
|
{
|
36 |
|
|
namespace namespace$
|
37 |
|
|
{
|
38 |
|
|
class QName;
|
39 |
|
|
}
|
40 |
|
|
namespace xpath
|
41 |
|
|
{
|
42 |
|
|
class XPathFunction;
|
43 |
|
|
}
|
44 |
|
|
}
|
45 |
|
|
}
|
46 |
|
|
namespace org
|
47 |
|
|
{
|
48 |
|
|
namespace w3c
|
49 |
|
|
{
|
50 |
|
|
namespace dom
|
51 |
|
|
{
|
52 |
|
|
class Document;
|
53 |
|
|
class NamedNodeMap;
|
54 |
|
|
class Node;
|
55 |
|
|
class Text;
|
56 |
|
|
}
|
57 |
|
|
}
|
58 |
|
|
}
|
59 |
|
|
}
|
60 |
|
|
|
61 |
|
|
class gnu::xml::transform::Stylesheet : public ::java::lang::Object
|
62 |
|
|
{
|
63 |
|
|
|
64 |
|
|
public: // actually package-private
|
65 |
|
|
Stylesheet(::gnu::xml::transform::TransformerFactoryImpl *, ::gnu::xml::transform::Stylesheet *, ::org::w3c::dom::Document *, ::java::lang::String *, jint);
|
66 |
|
|
virtual ::gnu::xml::transform::Stylesheet * getRootStylesheet();
|
67 |
|
|
virtual void initDefaultDecimalFormat();
|
68 |
|
|
public:
|
69 |
|
|
virtual ::java::lang::Object * clone();
|
70 |
|
|
public: // actually package-private
|
71 |
|
|
virtual void initTopLevelVariables(::org::w3c::dom::Node *);
|
72 |
|
|
public:
|
73 |
|
|
virtual ::java::lang::String * getNamespaceURI(::java::lang::String *);
|
74 |
|
|
virtual ::java::lang::String * getPrefix(::java::lang::String *);
|
75 |
|
|
virtual ::java::util::Iterator * getPrefixes(::java::lang::String *);
|
76 |
|
|
public: // actually package-private
|
77 |
|
|
virtual ::javax::xml::namespace$::QName * getQName(::java::lang::String *);
|
78 |
|
|
virtual ::gnu::xml::transform::TemplateNode * getTemplate(::javax::xml::namespace$::QName *, ::org::w3c::dom::Node *, jboolean);
|
79 |
|
|
virtual ::gnu::xml::transform::TemplateNode * getTemplate(::javax::xml::namespace$::QName *, ::javax::xml::namespace$::QName *);
|
80 |
|
|
virtual ::gnu::xml::transform::Template * parseTemplate(::org::w3c::dom::Node *, ::org::w3c::dom::NamedNodeMap *);
|
81 |
|
|
virtual void parseOutput(::org::w3c::dom::Node *, ::org::w3c::dom::NamedNodeMap *);
|
82 |
|
|
virtual void parseKey(::org::w3c::dom::Node *, ::org::w3c::dom::NamedNodeMap *);
|
83 |
|
|
virtual void parseDecimalFormat(::org::w3c::dom::Node *, ::org::w3c::dom::NamedNodeMap *);
|
84 |
|
|
private:
|
85 |
|
|
jchar parseDFChar(::org::w3c::dom::NamedNodeMap *, ::java::lang::String *, jchar);
|
86 |
|
|
::java::lang::String * parseDFString(::org::w3c::dom::NamedNodeMap *, ::java::lang::String *, ::java::lang::String *);
|
87 |
|
|
public: // actually package-private
|
88 |
|
|
virtual void parseNamespaceAlias(::org::w3c::dom::Node *, ::org::w3c::dom::NamedNodeMap *);
|
89 |
|
|
virtual void parseAttributeSet(::org::w3c::dom::Node *, ::org::w3c::dom::NamedNodeMap *);
|
90 |
|
|
virtual void parse(::org::w3c::dom::Node *, jboolean);
|
91 |
|
|
virtual void doParse(::org::w3c::dom::Node *, jboolean);
|
92 |
|
|
virtual ::gnu::xml::xpath::NameTest * parseNameTest(::java::lang::String *);
|
93 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseAttributeValueTemplate(::java::lang::String *, ::org::w3c::dom::Node *);
|
94 |
|
|
virtual jboolean isPreserved(::org::w3c::dom::Text *, jboolean);
|
95 |
|
|
public:
|
96 |
|
|
virtual ::javax::xml::xpath::XPathFunction * resolveFunction(::javax::xml::namespace$::QName *, jint);
|
97 |
|
|
public: // actually package-private
|
98 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseApplyTemplates(::org::w3c::dom::Node *);
|
99 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseCallTemplate(::org::w3c::dom::Node *);
|
100 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseValueOf(::org::w3c::dom::Node *);
|
101 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseForEach(::org::w3c::dom::Node *);
|
102 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseIf(::org::w3c::dom::Node *);
|
103 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseWhen(::org::w3c::dom::Node *);
|
104 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseElement(::org::w3c::dom::Node *);
|
105 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseAttribute(::org::w3c::dom::Node *);
|
106 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseText(::org::w3c::dom::Node *);
|
107 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseCopy(::org::w3c::dom::Node *);
|
108 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseProcessingInstruction(::org::w3c::dom::Node *);
|
109 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseNumber(::org::w3c::dom::Node *);
|
110 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseCopyOf(::org::w3c::dom::Node *);
|
111 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parseMessage(::org::w3c::dom::Node *);
|
112 |
|
|
virtual ::gnu::xml::transform::TemplateNode * parse(::org::w3c::dom::Node *);
|
113 |
|
|
private:
|
114 |
|
|
::gnu::xml::transform::TemplateNode * doParse(::org::w3c::dom::Node *);
|
115 |
|
|
public: // actually package-private
|
116 |
|
|
virtual ::java::util::List * parseSortKeys(::org::w3c::dom::Node *);
|
117 |
|
|
virtual ::java::util::List * parseWithParams(::org::w3c::dom::Node *);
|
118 |
|
|
virtual void addNamespaceNodes(::org::w3c::dom::Node *, ::org::w3c::dom::Node *, ::org::w3c::dom::Document *, ::java::util::Collection *);
|
119 |
|
|
static ::java::lang::String * getAttribute(::org::w3c::dom::NamedNodeMap *, ::java::lang::String *);
|
120 |
|
|
static ::java::lang::String * getRequiredAttribute(::org::w3c::dom::NamedNodeMap *, ::java::lang::String *, ::org::w3c::dom::Node *);
|
121 |
|
|
public:
|
122 |
|
|
virtual void handle(jshort, ::java::lang::String *, ::java::lang::Object *, ::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
123 |
|
|
virtual ::java::lang::String * toString();
|
124 |
|
|
public: // actually package-private
|
125 |
|
|
static ::java::lang::String * XSL_NS;
|
126 |
|
|
private:
|
127 |
|
|
static ::gnu::xml::xpath::NameTest * STYLESHEET_PRESERVE_TEXT;
|
128 |
|
|
public: // actually package-private
|
129 |
|
|
static const jint OUTPUT_XML = 0;
|
130 |
|
|
static const jint OUTPUT_HTML = 1;
|
131 |
|
|
static const jint OUTPUT_TEXT = 2;
|
132 |
|
|
::gnu::xml::transform::TransformerFactoryImpl * __attribute__((aligned(__alignof__( ::java::lang::Object)))) factory;
|
133 |
|
|
::gnu::xml::transform::TransformerImpl * transformer;
|
134 |
|
|
::gnu::xml::transform::Stylesheet * parent;
|
135 |
|
|
::gnu::xml::xpath::XPathImpl * xpath;
|
136 |
|
|
::java::lang::String * systemId;
|
137 |
|
|
jint precedence;
|
138 |
|
|
jboolean debug;
|
139 |
|
|
::java::lang::String * version;
|
140 |
|
|
::java::util::Collection * extensionElementPrefixes;
|
141 |
|
|
::java::util::Collection * excludeResultPrefixes;
|
142 |
|
|
::java::util::Set * stripSpace;
|
143 |
|
|
::java::util::Set * preserveSpace;
|
144 |
|
|
::org::w3c::dom::Node * output;
|
145 |
|
|
jint outputMethod;
|
146 |
|
|
::java::lang::String * outputVersion;
|
147 |
|
|
::java::lang::String * outputEncoding;
|
148 |
|
|
jboolean outputOmitXmlDeclaration;
|
149 |
|
|
jboolean outputStandalone;
|
150 |
|
|
::java::lang::String * outputPublicId;
|
151 |
|
|
::java::lang::String * outputSystemId;
|
152 |
|
|
::java::util::Collection * outputCdataSectionElements;
|
153 |
|
|
jboolean outputIndent;
|
154 |
|
|
::java::lang::String * outputMediaType;
|
155 |
|
|
::java::util::Collection * keys;
|
156 |
|
|
::java::util::Map * decimalFormats;
|
157 |
|
|
::java::util::Map * namespaceAliases;
|
158 |
|
|
::java::util::List * attributeSets;
|
159 |
|
|
::java::util::List * variables;
|
160 |
|
|
::gnu::xml::transform::Bindings * bindings;
|
161 |
|
|
::java::util::LinkedList * templates;
|
162 |
|
|
::gnu::xml::transform::TemplateNode * builtInNodeTemplate;
|
163 |
|
|
::gnu::xml::transform::TemplateNode * builtInTextTemplate;
|
164 |
|
|
::org::w3c::dom::Node * current;
|
165 |
|
|
jboolean terminated;
|
166 |
|
|
::gnu::xml::transform::Template * currentTemplate;
|
167 |
|
|
public:
|
168 |
|
|
static ::java::lang::Class class$;
|
169 |
|
|
};
|
170 |
|
|
|
171 |
|
|
#endif // __gnu_xml_transform_Stylesheet__
|