1 /*
2 * Copyright 2006-2012 The FLWOR Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 // ******************************************
18 // * *
19 // * THIS IS A GENERATED FILE. DO NOT EDIT! *
20 // * SEE .xml FILE WITH SAME NAME *
21 // * *
22 // ******************************************
23
24 #include "stdafx.h"
25 #include "zorbatypes/rchandle.h"
26 #include "zorbatypes/zstring.h"
27 #include "runtime/visitors/planiter_visitor.h"
28 #include "runtime/schema/schema.h"
29 #include "system/globalenv.h"
30
31
32 #include "types/typemanager.h"
33 #include "types/schema/schema.h"
34 #include "types/schema/validate.h"
35
36 namespace zorba {
37
38 #ifndef ZORBA_NO_XMLSCHEMA
39 // <ValidateIterator>
SERIALIZABLE_CLASS_VERSIONS(ValidateIterator)40 SERIALIZABLE_CLASS_VERSIONS(ValidateIterator)
41
42
43 void ValidateIterator::accept(PlanIterVisitor& v) const
44 {
45 v.beginVisit(*this);
46
47 theChild->accept(v);
48
49 v.endVisit(*this);
50 }
51
~ValidateIterator()52 ValidateIterator::~ValidateIterator() {}
53
54 // </ValidateIterator>
55
56 #endif
57 // <ZorbaValidateInPlaceIterator>
SERIALIZABLE_CLASS_VERSIONS(ZorbaValidateInPlaceIterator)58 SERIALIZABLE_CLASS_VERSIONS(ZorbaValidateInPlaceIterator)
59
60 void ZorbaValidateInPlaceIterator::serialize(::zorba::serialization::Archiver& ar)
61 {
62 serialize_baseclass(ar,
63 (UnaryBaseIterator<ZorbaValidateInPlaceIterator, PlanIteratorState>*)this);
64 }
65
66
accept(PlanIterVisitor & v) const67 void ZorbaValidateInPlaceIterator::accept(PlanIterVisitor& v) const
68 {
69 v.beginVisit(*this);
70
71 theChild->accept(v);
72
73 v.endVisit(*this);
74 }
75
~ZorbaValidateInPlaceIterator()76 ZorbaValidateInPlaceIterator::~ZorbaValidateInPlaceIterator() {}
77
78 // </ZorbaValidateInPlaceIterator>
79
80
81 // <ZorbaSchemaTypeIterator>
SERIALIZABLE_CLASS_VERSIONS(ZorbaSchemaTypeIterator)82 SERIALIZABLE_CLASS_VERSIONS(ZorbaSchemaTypeIterator)
83
84 void ZorbaSchemaTypeIterator::serialize(::zorba::serialization::Archiver& ar)
85 {
86 serialize_baseclass(ar,
87 (NaryBaseIterator<ZorbaSchemaTypeIterator, PlanIteratorState>*)this);
88 }
89
90
accept(PlanIterVisitor & v) const91 void ZorbaSchemaTypeIterator::accept(PlanIterVisitor& v) const
92 {
93 v.beginVisit(*this);
94
95 std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
96 std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
97 for ( ; lIter != lEnd; ++lIter ){
98 (*lIter)->accept(v);
99 }
100
101 v.endVisit(*this);
102 }
103
~ZorbaSchemaTypeIterator()104 ZorbaSchemaTypeIterator::~ZorbaSchemaTypeIterator() {}
105
106 // </ZorbaSchemaTypeIterator>
107
108
109 // <ZorbaIsValidatedIterator>
SERIALIZABLE_CLASS_VERSIONS(ZorbaIsValidatedIterator)110 SERIALIZABLE_CLASS_VERSIONS(ZorbaIsValidatedIterator)
111
112 void ZorbaIsValidatedIterator::serialize(::zorba::serialization::Archiver& ar)
113 {
114 serialize_baseclass(ar,
115 (NaryBaseIterator<ZorbaIsValidatedIterator, PlanIteratorState>*)this);
116 }
117
118
accept(PlanIterVisitor & v) const119 void ZorbaIsValidatedIterator::accept(PlanIterVisitor& v) const
120 {
121 v.beginVisit(*this);
122
123 std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
124 std::vector<PlanIter_t>::const_iterator lEnd = theChildren.end();
125 for ( ; lIter != lEnd; ++lIter ){
126 (*lIter)->accept(v);
127 }
128
129 v.endVisit(*this);
130 }
131
~ZorbaIsValidatedIterator()132 ZorbaIsValidatedIterator::~ZorbaIsValidatedIterator() {}
133
134 // </ZorbaIsValidatedIterator>
135
136
137
138 }
139
140
141