1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_xml_validation_relaxng_FullSyntaxBuilder__
|
5 |
|
|
#define __gnu_xml_validation_relaxng_FullSyntaxBuilder__
|
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 validation
|
17 |
|
|
{
|
18 |
|
|
namespace relaxng
|
19 |
|
|
{
|
20 |
|
|
class AnyNameNameClass;
|
21 |
|
|
class AttributePattern;
|
22 |
|
|
class ChoiceNameClass;
|
23 |
|
|
class ChoicePattern;
|
24 |
|
|
class DataPattern;
|
25 |
|
|
class Define;
|
26 |
|
|
class ElementPattern;
|
27 |
|
|
class EmptyPattern;
|
28 |
|
|
class FullSyntaxBuilder;
|
29 |
|
|
class Grammar;
|
30 |
|
|
class GroupPattern;
|
31 |
|
|
class InterleavePattern;
|
32 |
|
|
class ListPattern;
|
33 |
|
|
class NSNameNameClass;
|
34 |
|
|
class NameClass;
|
35 |
|
|
class NameNameClass;
|
36 |
|
|
class NotAllowedPattern;
|
37 |
|
|
class OneOrMorePattern;
|
38 |
|
|
class Param;
|
39 |
|
|
class Pattern;
|
40 |
|
|
class RefPattern;
|
41 |
|
|
class TextPattern;
|
42 |
|
|
class ValuePattern;
|
43 |
|
|
}
|
44 |
|
|
}
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
namespace org
|
48 |
|
|
{
|
49 |
|
|
namespace relaxng
|
50 |
|
|
{
|
51 |
|
|
namespace datatype
|
52 |
|
|
{
|
53 |
|
|
class DatatypeLibrary;
|
54 |
|
|
}
|
55 |
|
|
}
|
56 |
|
|
namespace w3c
|
57 |
|
|
{
|
58 |
|
|
namespace dom
|
59 |
|
|
{
|
60 |
|
|
class Document;
|
61 |
|
|
class Element;
|
62 |
|
|
class Node;
|
63 |
|
|
}
|
64 |
|
|
}
|
65 |
|
|
}
|
66 |
|
|
}
|
67 |
|
|
|
68 |
|
|
class gnu::xml::validation::relaxng::FullSyntaxBuilder : public ::java::lang::Object
|
69 |
|
|
{
|
70 |
|
|
|
71 |
|
|
public: // actually package-private
|
72 |
|
|
FullSyntaxBuilder();
|
73 |
|
|
virtual ::gnu::xml::validation::relaxng::Grammar * parse(::org::w3c::dom::Document *);
|
74 |
|
|
private:
|
75 |
|
|
void getDefines(::java::util::Set *, ::org::w3c::dom::Element *, ::org::w3c::dom::Element *, jboolean);
|
76 |
|
|
void getElements(::java::util::Set *, ::org::w3c::dom::Element *, ::org::w3c::dom::Element *);
|
77 |
|
|
void expandRefs(::java::util::Set *, ::org::w3c::dom::Element *);
|
78 |
|
|
void forbidRefs(::org::w3c::dom::Element *, ::java::lang::String *);
|
79 |
|
|
void transform(::org::w3c::dom::Node *);
|
80 |
|
|
void transformGrammar(::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
81 |
|
|
void handleRefs(::org::w3c::dom::Node *, ::org::w3c::dom::Node *, ::org::w3c::dom::Node *);
|
82 |
|
|
::java::lang::String * createRefName();
|
83 |
|
|
void transform2(::org::w3c::dom::Node *);
|
84 |
|
|
static jboolean isWhitespace(::java::lang::String *);
|
85 |
|
|
static ::java::lang::String * escapeURL(::java::lang::String *);
|
86 |
|
|
static ::org::w3c::dom::Element * resolve(::java::lang::String *);
|
87 |
|
|
::java::util::List * getComponents(::org::w3c::dom::Node *);
|
88 |
|
|
static void transformToOneChildElement(::org::w3c::dom::Node *, ::java::lang::String *);
|
89 |
|
|
static ::org::w3c::dom::Element * getFirstChildElement(::org::w3c::dom::Node *);
|
90 |
|
|
static ::org::w3c::dom::Element * getNextSiblingElement(::org::w3c::dom::Node *);
|
91 |
|
|
static void forbidDescendants(::org::w3c::dom::Node *, ::java::util::Set *);
|
92 |
|
|
static jboolean isDescendantOfFirstChildOfAttribute(::org::w3c::dom::Node *);
|
93 |
|
|
static void combineNodes(::org::w3c::dom::Node *, ::java::lang::String *, ::java::lang::String *, ::java::util::List *);
|
94 |
|
|
public: // actually package-private
|
95 |
|
|
virtual ::gnu::xml::validation::relaxng::Grammar * parseGrammar(::org::w3c::dom::Element *);
|
96 |
|
|
virtual ::gnu::xml::validation::relaxng::Define * parseDefine(::org::w3c::dom::Element *);
|
97 |
|
|
virtual ::gnu::xml::validation::relaxng::Pattern * parseTop(::org::w3c::dom::Element *);
|
98 |
|
|
virtual ::gnu::xml::validation::relaxng::Pattern * parsePattern(::org::w3c::dom::Element *);
|
99 |
|
|
virtual ::gnu::xml::validation::relaxng::Pattern * parseNonEmptyPattern(::org::w3c::dom::Element *);
|
100 |
|
|
virtual ::gnu::xml::validation::relaxng::ElementPattern * parseElement(::org::w3c::dom::Element *);
|
101 |
|
|
virtual ::gnu::xml::validation::relaxng::NotAllowedPattern * parseNotAllowed(::org::w3c::dom::Element *);
|
102 |
|
|
virtual ::gnu::xml::validation::relaxng::EmptyPattern * parseEmpty(::org::w3c::dom::Element *);
|
103 |
|
|
virtual ::gnu::xml::validation::relaxng::TextPattern * parseText(::org::w3c::dom::Element *);
|
104 |
|
|
virtual ::gnu::xml::validation::relaxng::DataPattern * parseData(::org::w3c::dom::Element *);
|
105 |
|
|
virtual ::gnu::xml::validation::relaxng::Param * parseParam(::org::w3c::dom::Element *);
|
106 |
|
|
virtual ::gnu::xml::validation::relaxng::ValuePattern * parseValue(::org::w3c::dom::Element *);
|
107 |
|
|
virtual ::gnu::xml::validation::relaxng::ListPattern * parseList(::org::w3c::dom::Element *);
|
108 |
|
|
virtual ::gnu::xml::validation::relaxng::AttributePattern * parseAttribute(::org::w3c::dom::Element *);
|
109 |
|
|
virtual ::gnu::xml::validation::relaxng::RefPattern * parseRef(::org::w3c::dom::Element *);
|
110 |
|
|
virtual ::gnu::xml::validation::relaxng::OneOrMorePattern * parseOneOrMore(::org::w3c::dom::Element *);
|
111 |
|
|
virtual ::gnu::xml::validation::relaxng::ChoicePattern * parseChoice(::org::w3c::dom::Element *);
|
112 |
|
|
virtual ::gnu::xml::validation::relaxng::GroupPattern * parseGroup(::org::w3c::dom::Element *);
|
113 |
|
|
virtual ::gnu::xml::validation::relaxng::InterleavePattern * parseInterleave(::org::w3c::dom::Element *);
|
114 |
|
|
virtual ::gnu::xml::validation::relaxng::NameClass * parseNameClass(::org::w3c::dom::Element *);
|
115 |
|
|
virtual ::gnu::xml::validation::relaxng::AnyNameNameClass * parseAnyName(::org::w3c::dom::Element *);
|
116 |
|
|
virtual ::gnu::xml::validation::relaxng::NameNameClass * parseName(::org::w3c::dom::Element *);
|
117 |
|
|
virtual ::gnu::xml::validation::relaxng::NSNameNameClass * parseNsName(::org::w3c::dom::Element *);
|
118 |
|
|
virtual ::gnu::xml::validation::relaxng::ChoiceNameClass * parseChoiceNameClass(::org::w3c::dom::Element *);
|
119 |
|
|
virtual void checkName(::org::w3c::dom::Element *, ::java::lang::String *);
|
120 |
|
|
virtual ::org::relaxng::datatype::DatatypeLibrary * getDatatypeLibrary(::java::lang::String *);
|
121 |
|
|
static ::java::util::Map * VOCABULARY;
|
122 |
|
|
static ::java::util::Set * STRIPPED_ATTRIBUTES;
|
123 |
|
|
static ::java::util::Set * PATTERN_ELEMENTS;
|
124 |
|
|
private:
|
125 |
|
|
::java::util::Set * __attribute__((aligned(__alignof__( ::java::lang::Object)))) urls;
|
126 |
|
|
jint refCount;
|
127 |
|
|
::java::util::Map * datatypeLibraries;
|
128 |
|
|
public:
|
129 |
|
|
static ::java::lang::Class class$;
|
130 |
|
|
};
|
131 |
|
|
|
132 |
|
|
#endif // __gnu_xml_validation_relaxng_FullSyntaxBuilder__
|