xmlutils 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +77 -0
- data/bin/xmltogdl +88 -0
- data/docs/README.txt +20 -0
- data/lib/xmlutils/contextlistener.rb +432 -0
- data/lib/xmlutils/contextparser.rb +111 -0
- data/lib/xmlutils/dumplistener.rb +57 -0
- data/lib/xmlutils/gdlcontext.rb +305 -0
- data/lib/xmlutils/gdlcontextobjs.rb +286 -0
- data/lib/xmlutils/gdldoc.rb +547 -0
- data/lib/xmlutils/gdldocbuilder.rb +181 -0
- data/lib/xmlutils/gdllistener.rb +265 -0
- data/lib/xmlutils/gdltemplate.rb +488 -0
- data/lib/xmlutils/lineparser.rb +193 -0
- data/lib/xmlutils/listener.rb +459 -0
- data/lib/xmlutils/rulelistener.rb +414 -0
- data/lib/xmlutils/ruleparser.rb +112 -0
- data/lib/xmlutils/varlistener.rb +86 -0
- data/lib/xmlutils/version.rb +5 -0
- data/lib/xmlutils/xmlrulevisitor.rb +704 -0
- data/lib/xmlutils/xmltogdlcontroller.rb +93 -0
- data/lib/xmlutils/xmltogdltask.rb +23 -0
- data/lib/xmlutils/xmlvisitor.rb +690 -0
- data/lib/xmlutils.rb +40 -0
- data/rakefile.rb +34 -0
- data/unittests/2830.xml +1 -0
- data/unittests/chunks.rb +31 -0
- data/unittests/curDirTest.rb +2 -0
- data/unittests/data/2830-GENERATED.gdl +309 -0
- data/unittests/data/2830-GENERATED.xml +1 -0
- data/unittests/data/AUGuideline.xml +12 -0
- data/unittests/data/AUGuideline.xml.gdl +19190 -0
- data/unittests/data/BAKUP.DCTEST1.xml +1 -0
- data/unittests/data/DCTEST.xml +1 -0
- data/unittests/data/DCTEST1.xml +1 -0
- data/unittests/data/DCTEST1.xml.gdl +14890 -0
- data/unittests/data/DCTEST1.xml.rename.csv +180 -0
- data/unittests/data/DCTEST1wLookups.xml +174 -0
- data/unittests/data/DCTEST1wLookups.xml.gdl +127 -0
- data/unittests/data/GENERATED.gdl.xml +1 -0
- data/unittests/data/Message.xml +1 -0
- data/unittests/data/Message.xml.gdl +142 -0
- data/unittests/data/Pricing2ndGuideline.xml +1 -0
- data/unittests/data/Pricing2ndGuideline.xml.gdl +52670 -0
- data/unittests/data/Z-TEMP-Jeff.xml +1 -0
- data/unittests/data/Z-TEMP-Jeff.xml.gdl +288 -0
- data/unittests/tc_convert_xml_to_gdl.rb +23 -0
- data/unittests/ts_allTests.rb +2 -0
- data/xmlutils.gemspec +25 -0
- metadata +139 -0
@@ -0,0 +1 @@
|
|
1
|
+
<GuidelineRoot><Guideline GuidelineID="292" Name="Z-TEMP-Jeff" Version="63147" StartDate="Nov 30 2007 3:10PM"><Ruleset Id="137" Name="AltA-Max DTI Limits Calc Ruleset" ExecuteType="1" Type="0"><Rule Id="41660" Name="AltA-Max Dti SivaLiteDoc"><IfMessages></IfMessages><ElseMessages></ElseMessages><Condition><Expression><Compute><Operator>OR</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Document Type" Type="APM" /></LeftOperand><RightOperand><Constant>SIVA</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Document Type" Type="APM" /></LeftOperand><RightOperand><Constant>Lite Doc</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>50</Constant></Expression></AssignValue></Assign></IfActions></Rule><Rule Id="41661" Name="AltA-Max DTI Investment"><IfMessages></IfMessages><ElseMessages></ElseMessages><Condition><Expression><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Occupancy" Type="APM" /></LeftOperand><RightOperand><Constant>Investment</Constant></RightOperand></Compute></Brace></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>50</Constant></Expression></AssignValue></Assign></IfActions></Rule><Rule Id="41662" Name="AltA-Max DTI PriSecResidence"><IfMessages></IfMessages><ElseMessages></ElseMessages><Condition><Expression><Brace><Compute><Operator>OR</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Occupancy" Type="APM" /></LeftOperand><RightOperand><Constant>PrimaryResidence</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Occupancy" Type="APM" /></LeftOperand><RightOperand><Constant>SecondaryResidence</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Brace></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>50</Constant></Expression></AssignValue></Assign></IfActions></Rule></Ruleset><Ruleset Id="752" Name="AltA-Max DTI Limits Calc Combo Ruleset" ExecuteType="1" Type="0"><Rule Id="3430" Name="AltA-Max DTI 1000001 Combo"><IfMessages /><ElseMessages /><Condition><Expression><Brace><Compute><Operator>></Operator><LeftOperand><DPM Name="Combined Loan Amount" Type="DPM" Order="0" ProductType="3" /></LeftOperand><RightOperand><Constant>1000000</Constant></RightOperand></Compute></Brace></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>42</Constant></Expression></AssignValue></Assign></IfActions></Rule><Rule Id="859" Name="AltA-Max DTI Texas Cash Out"><IfMessages /><ElseMessages /><Condition><Expression><Compute><Operator>AND</Operator><LeftOperand><Compute><Operator>AND</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Occupancy" Type="APM" /></LeftOperand><RightOperand><Constant>PrimaryResidence</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><DPM Name="Purpose Abbrev" Type="DPM" Order="0" ProductType="6" /></LeftOperand><RightOperand><Constant>CO</Constant></RightOperand></Compute></Brace></RightOperand></Compute></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="State of the Subject Property" Type="APM" /></LeftOperand><RightOperand><Constant>TX</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>45</Constant></Expression></AssignValue></Assign></IfActions></Rule><Rule Id="37692" Name="AltA-MaxDti55IOFullDocCombo"><IfMessages></IfMessages><ElseMessages></ElseMessages><Condition><Expression><Compute><Operator>AND</Operator><LeftOperand><Compute><Operator>AND</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><DPM Name="Doc Type Abbrev" Type="DPM" Order="0" ProductType="6" /></LeftOperand><RightOperand><Constant>Full Doc</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator><=</Operator><LeftOperand><DPM Name="Combined Loan Amount" Type="DPM" Order="0" ProductType="3" /></LeftOperand><RightOperand><Constant>1000000</Constant></RightOperand></Compute></Brace></RightOperand></Compute></LeftOperand><RightOperand><Brace><Compute><Operator>OR</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Amortization Type-PDT" Type="PRD" /></LeftOperand><RightOperand><Constant>IOARM</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Amortization Type-PDT" Type="PRD" /></LeftOperand><RightOperand><Constant>IOFixed</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Brace></RightOperand></Compute></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>55</Constant></Expression></AssignValue></Assign></IfActions></Rule><Rule Id="37696" Name="AltA-MaxDti55IOFullDocHelocCombo"><IfMessages></IfMessages><ElseMessages></ElseMessages><Condition><Expression><Compute><Operator>AND</Operator><LeftOperand><Compute><Operator>AND</Operator><LeftOperand><Compute><Operator>AND</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><DPM Name="Doc Type Abbrev" Type="DPM" Order="0" ProductType="6" /></LeftOperand><RightOperand><Constant>Full Doc</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator><=</Operator><LeftOperand><DPM Name="Combined Loan Amount" Type="DPM" Order="0" ProductType="3" /></LeftOperand><RightOperand><Constant>1000000</Constant></RightOperand></Compute></Brace></RightOperand></Compute></LeftOperand><RightOperand><Brace><Compute><Operator>OR</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Amortization Type-PDT" Type="PRD" /></LeftOperand><RightOperand><Constant>IOARM</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Amortization Type-PDT" Type="PRD" /></LeftOperand><RightOperand><Constant>IOFixed</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Brace></RightOperand></Compute></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><DPM Name="Amort Type 2nd" Type="DPM" Order="0" ProductType="6" /></LeftOperand><RightOperand><Constant>HELOC</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>55</Constant></Expression></AssignValue></Assign></IfActions></Rule><Rule Id="3431" Name="AltA-Max DTI 1000000 Combo"><IfMessages></IfMessages><ElseMessages></ElseMessages><Condition><Expression><Compute><Operator>AND</Operator><LeftOperand><Compute><Operator>AND</Operator><LeftOperand><Brace><Compute><Operator>OR</Operator><LeftOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Occupancy" Type="APM" /></LeftOperand><RightOperand><Constant>PrimaryResidence</Constant></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator>==</Operator><LeftOperand><PPM Name="Occupancy" Type="APM" /></LeftOperand><RightOperand><Constant>SecondaryResidence</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Brace></LeftOperand><RightOperand><Brace><Compute><Operator><=</Operator><LeftOperand><DPM Name="CLTV" Type="DSM" Order="0" ProductType="5" /></LeftOperand><RightOperand><Constant>80</Constant></RightOperand></Compute></Brace></RightOperand></Compute></LeftOperand><RightOperand><Brace><Compute><Operator><=</Operator><LeftOperand><DPM Name="Combined Loan Amount" Type="DPM" Order="0" ProductType="3" /></LeftOperand><RightOperand><Constant>1000000</Constant></RightOperand></Compute></Brace></RightOperand></Compute></Expression></Condition><IfActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>55</Constant></Expression></AssignValue></Assign></IfActions><ElseActions><Assign><AssignTo><DPM Name="Max DTI" Type="DSM" Order="0" ProductType="4" /></AssignTo><AssignValue><Expression><Constant>50</Constant></Expression></AssignValue></Assign></ElseActions></Rule></Ruleset></Guideline></GuidelineRoot>
|
@@ -0,0 +1,288 @@
|
|
1
|
+
/* **************************************************************************
|
2
|
+
* File: data/Z-TEMP-Jeff.xml.gdl
|
3
|
+
* Generated guideline
|
4
|
+
*
|
5
|
+
* *************************************************************************/
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
// --------------------------- DPM Definitions ---------------------------
|
13
|
+
|
14
|
+
dpm text DocTypeAbbrev "Doc Type Abbrev";
|
15
|
+
dpm money CombinedLoanAmount "Combined Loan Amount";
|
16
|
+
dpm text PurposeAbbrev "Purpose Abbrev";
|
17
|
+
dpm text AmortType2nd "Amort Type 2nd";
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
// --------------------------- DSM Definitions ---------------------------
|
23
|
+
|
24
|
+
decision dpm percentage CLTV "CLTV";
|
25
|
+
decision dpm numeric MaxDTI "Max DTI";
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
// --------------------------- PPM Definitions ---------------------------
|
31
|
+
|
32
|
+
ppm UNKNOWN prd pAmortizationType-PDT "Amortization Type-PDT";
|
33
|
+
ppm UNKNOWN app pOccupancy "Occupancy";
|
34
|
+
ppm UNKNOWN app pStateoftheSubjectProperty "State of the Subject Property";
|
35
|
+
ppm UNKNOWN app pDocumentType "Document Type";
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
// -------------------------- Rule Definitions --------------------------
|
41
|
+
|
42
|
+
alias(rule, AltA-MaxDTIInvestment, "AltA-Max DTI Investment");
|
43
|
+
|
44
|
+
/* ==========================================================================
|
45
|
+
* AltA-MaxDTIInvestment
|
46
|
+
*
|
47
|
+
*
|
48
|
+
*/
|
49
|
+
rule AltA-MaxDTIInvestment()
|
50
|
+
if(
|
51
|
+
(pOccupancy == 'Investment')
|
52
|
+
)
|
53
|
+
then
|
54
|
+
MaxDTI = '50';
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
end // rule AltA-MaxDTIInvestment
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
alias(rule, AltA-MaxDTI1000001Combo, "AltA-Max DTI 1000001 Combo");
|
64
|
+
|
65
|
+
/* ==========================================================================
|
66
|
+
* AltA-MaxDTI1000001Combo
|
67
|
+
*
|
68
|
+
*
|
69
|
+
*/
|
70
|
+
rule AltA-MaxDTI1000001Combo()
|
71
|
+
if(
|
72
|
+
(CombinedLoanAmount > '1000000')
|
73
|
+
)
|
74
|
+
then
|
75
|
+
MaxDTI = '42';
|
76
|
+
|
77
|
+
|
78
|
+
end
|
79
|
+
end // rule AltA-MaxDTI1000001Combo
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
/* ==========================================================================
|
86
|
+
* AltA-MaxDti55IOFullDocCombo
|
87
|
+
*
|
88
|
+
*
|
89
|
+
*/
|
90
|
+
rule AltA-MaxDti55IOFullDocCombo()
|
91
|
+
if(
|
92
|
+
(DocTypeAbbrev == 'Full Doc') &&
|
93
|
+
(CombinedLoanAmount <= '1000000') &&
|
94
|
+
((pAmortizationType-PDT == 'IOARM') ||
|
95
|
+
(pAmortizationType-PDT == 'IOFixed'))
|
96
|
+
)
|
97
|
+
then
|
98
|
+
MaxDTI = '55';
|
99
|
+
|
100
|
+
|
101
|
+
end
|
102
|
+
end // rule AltA-MaxDti55IOFullDocCombo
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
alias(rule, AltA-MaxDTITexasCashOut, "AltA-Max DTI Texas Cash Out");
|
108
|
+
|
109
|
+
/* ==========================================================================
|
110
|
+
* AltA-MaxDTITexasCashOut
|
111
|
+
*
|
112
|
+
*
|
113
|
+
*/
|
114
|
+
rule AltA-MaxDTITexasCashOut()
|
115
|
+
if(
|
116
|
+
(pOccupancy == 'PrimaryResidence') &&
|
117
|
+
(PurposeAbbrev == 'CO') &&
|
118
|
+
(pStateoftheSubjectProperty == 'TX')
|
119
|
+
)
|
120
|
+
then
|
121
|
+
MaxDTI = '45';
|
122
|
+
|
123
|
+
|
124
|
+
end
|
125
|
+
end // rule AltA-MaxDTITexasCashOut
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
alias(rule, AltA-MaxDtiSivaLiteDoc, "AltA-Max Dti SivaLiteDoc");
|
131
|
+
|
132
|
+
/* ==========================================================================
|
133
|
+
* AltA-MaxDtiSivaLiteDoc
|
134
|
+
*
|
135
|
+
*
|
136
|
+
*/
|
137
|
+
rule AltA-MaxDtiSivaLiteDoc()
|
138
|
+
if(
|
139
|
+
(pDocumentType == 'SIVA') ||
|
140
|
+
(pDocumentType == 'Lite Doc')
|
141
|
+
)
|
142
|
+
then
|
143
|
+
MaxDTI = '50';
|
144
|
+
|
145
|
+
|
146
|
+
end
|
147
|
+
end // rule AltA-MaxDtiSivaLiteDoc
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
alias(rule, AltA-MaxDTI1000000Combo, "AltA-Max DTI 1000000 Combo");
|
153
|
+
|
154
|
+
/* ==========================================================================
|
155
|
+
* AltA-MaxDTI1000000Combo
|
156
|
+
*
|
157
|
+
*
|
158
|
+
*/
|
159
|
+
rule AltA-MaxDTI1000000Combo()
|
160
|
+
if(
|
161
|
+
((pOccupancy == 'PrimaryResidence') ||
|
162
|
+
(pOccupancy == 'SecondaryResidence')) &&
|
163
|
+
(CLTV <= '80') &&
|
164
|
+
(CombinedLoanAmount <= '1000000')
|
165
|
+
)
|
166
|
+
then
|
167
|
+
MaxDTI = '55';
|
168
|
+
|
169
|
+
|
170
|
+
else
|
171
|
+
MaxDTI = '50';
|
172
|
+
|
173
|
+
|
174
|
+
end
|
175
|
+
end // rule AltA-MaxDTI1000000Combo
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
/* ==========================================================================
|
182
|
+
* AltA-MaxDti55IOFullDocHelocCombo
|
183
|
+
*
|
184
|
+
*
|
185
|
+
*/
|
186
|
+
rule AltA-MaxDti55IOFullDocHelocCombo()
|
187
|
+
if(
|
188
|
+
(DocTypeAbbrev == 'Full Doc') &&
|
189
|
+
(CombinedLoanAmount <= '1000000') &&
|
190
|
+
((pAmortizationType-PDT == 'IOARM') ||
|
191
|
+
(pAmortizationType-PDT == 'IOFixed')) &&
|
192
|
+
(AmortType2nd == 'HELOC')
|
193
|
+
)
|
194
|
+
then
|
195
|
+
MaxDTI = '55';
|
196
|
+
|
197
|
+
|
198
|
+
end
|
199
|
+
end // rule AltA-MaxDti55IOFullDocHelocCombo
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
alias(rule, AltA-MaxDTIPriSecResidence, "AltA-Max DTI PriSecResidence");
|
205
|
+
|
206
|
+
/* ==========================================================================
|
207
|
+
* AltA-MaxDTIPriSecResidence
|
208
|
+
*
|
209
|
+
*
|
210
|
+
*/
|
211
|
+
rule AltA-MaxDTIPriSecResidence()
|
212
|
+
if(
|
213
|
+
((pOccupancy == 'PrimaryResidence') ||
|
214
|
+
(pOccupancy == 'SecondaryResidence'))
|
215
|
+
)
|
216
|
+
then
|
217
|
+
MaxDTI = '50';
|
218
|
+
|
219
|
+
|
220
|
+
end
|
221
|
+
end // rule AltA-MaxDTIPriSecResidence
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
// ------------------------- RuleSet Definitions -------------------------
|
231
|
+
|
232
|
+
alias(ruleset, AltA-MaxDTILimitsCalcRuleset, "AltA-Max DTI Limits Calc Ruleset");
|
233
|
+
|
234
|
+
/* ==========================================================================
|
235
|
+
* AltA-MaxDTILimitsCalcRuleset
|
236
|
+
*
|
237
|
+
*
|
238
|
+
*/
|
239
|
+
ruleset AltA-MaxDTILimitsCalcRuleset(true)
|
240
|
+
rule AltA-MaxDtiSivaLiteDoc();
|
241
|
+
rule AltA-MaxDTIInvestment();
|
242
|
+
rule AltA-MaxDTIPriSecResidence();
|
243
|
+
|
244
|
+
end // ruleset AltA-MaxDTILimitsCalcRuleset
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
alias(ruleset, AltA-MaxDTILimitsCalcComboRuleset, "AltA-Max DTI Limits Calc Combo Ruleset");
|
250
|
+
|
251
|
+
/* ==========================================================================
|
252
|
+
* AltA-MaxDTILimitsCalcComboRuleset
|
253
|
+
*
|
254
|
+
*
|
255
|
+
*/
|
256
|
+
ruleset AltA-MaxDTILimitsCalcComboRuleset(true)
|
257
|
+
rule AltA-MaxDTI1000001Combo();
|
258
|
+
rule AltA-MaxDTITexasCashOut();
|
259
|
+
rule AltA-MaxDti55IOFullDocCombo();
|
260
|
+
rule AltA-MaxDti55IOFullDocHelocCombo();
|
261
|
+
rule AltA-MaxDTI1000000Combo();
|
262
|
+
|
263
|
+
end // ruleset AltA-MaxDTILimitsCalcComboRuleset
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
// ------------------------ Guideline Definition ------------------------
|
273
|
+
|
274
|
+
/* ==========================================================================
|
275
|
+
* Z-TEMP-Jeff
|
276
|
+
*
|
277
|
+
* ID: 292
|
278
|
+
* Version: 63147
|
279
|
+
* Start Date: Nov 30 2007 3:10PM
|
280
|
+
*
|
281
|
+
*/
|
282
|
+
guideline("Z-TEMP-Jeff")
|
283
|
+
|
284
|
+
ruleset AltA-MaxDTILimitsCalcRuleset();
|
285
|
+
ruleset AltA-MaxDTILimitsCalcComboRuleset();
|
286
|
+
|
287
|
+
|
288
|
+
end // guideline Z-TEMP-Jeff
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'xmlUtils'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
#len = ARGV.length
|
5
|
+
|
6
|
+
#puts "ARG count: #{len}"
|
7
|
+
#exit
|
8
|
+
|
9
|
+
#fname = "data/DCTEST.xml"
|
10
|
+
fname = "data/DCTEST1.xml"
|
11
|
+
#fname = "data/DCTEST1wLookups.xml"
|
12
|
+
#fname = "data/Z-TEMP-Jeff.xml"
|
13
|
+
#fname = "data/Message.xml"
|
14
|
+
#fname = "data/AUGuideline.xml"
|
15
|
+
#fname = "data/Pricing2ndGuideline.xml"
|
16
|
+
|
17
|
+
curDir = Dir.getwd
|
18
|
+
puts "Working dir: #{curDir}"
|
19
|
+
|
20
|
+
|
21
|
+
docBuilder = GdlDocBuilder.new(ARGV)
|
22
|
+
docBuilder.createDocument(fname, curDir)
|
23
|
+
|
data/xmlutils.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'xmlutils/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "xmlutils"
|
8
|
+
spec.version = XmlUtils::VERSION
|
9
|
+
spec.authors = ["Jeff McAffee"]
|
10
|
+
spec.email = ["jeff@ktechsystems.com"]
|
11
|
+
spec.description = %q{XML Utility classes library and XmlToGdl application.}
|
12
|
+
spec.summary = %q{XML Utility classes library}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "Mine"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "ktcommon", "~> 0.0.7"
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xmlutils
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff McAffee
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: ktcommon
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.0.7
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.7
|
55
|
+
description: XML Utility classes library and XmlToGdl application.
|
56
|
+
email:
|
57
|
+
- jeff@ktechsystems.com
|
58
|
+
executables:
|
59
|
+
- xmltogdl
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE
|
66
|
+
- README.md
|
67
|
+
- bin/xmltogdl
|
68
|
+
- docs/README.txt
|
69
|
+
- lib/xmlutils.rb
|
70
|
+
- lib/xmlutils/contextlistener.rb
|
71
|
+
- lib/xmlutils/contextparser.rb
|
72
|
+
- lib/xmlutils/dumplistener.rb
|
73
|
+
- lib/xmlutils/gdlcontext.rb
|
74
|
+
- lib/xmlutils/gdlcontextobjs.rb
|
75
|
+
- lib/xmlutils/gdldoc.rb
|
76
|
+
- lib/xmlutils/gdldocbuilder.rb
|
77
|
+
- lib/xmlutils/gdllistener.rb
|
78
|
+
- lib/xmlutils/gdltemplate.rb
|
79
|
+
- lib/xmlutils/lineparser.rb
|
80
|
+
- lib/xmlutils/listener.rb
|
81
|
+
- lib/xmlutils/rulelistener.rb
|
82
|
+
- lib/xmlutils/ruleparser.rb
|
83
|
+
- lib/xmlutils/varlistener.rb
|
84
|
+
- lib/xmlutils/version.rb
|
85
|
+
- lib/xmlutils/xmlrulevisitor.rb
|
86
|
+
- lib/xmlutils/xmltogdlcontroller.rb
|
87
|
+
- lib/xmlutils/xmltogdltask.rb
|
88
|
+
- lib/xmlutils/xmlvisitor.rb
|
89
|
+
- rakefile.rb
|
90
|
+
- unittests/2830.xml
|
91
|
+
- unittests/chunks.rb
|
92
|
+
- unittests/curDirTest.rb
|
93
|
+
- unittests/data/2830-GENERATED.gdl
|
94
|
+
- unittests/data/2830-GENERATED.xml
|
95
|
+
- unittests/data/AUGuideline.xml
|
96
|
+
- unittests/data/AUGuideline.xml.gdl
|
97
|
+
- unittests/data/BAKUP.DCTEST1.xml
|
98
|
+
- unittests/data/DCTEST.xml
|
99
|
+
- unittests/data/DCTEST1.xml
|
100
|
+
- unittests/data/DCTEST1.xml.gdl
|
101
|
+
- unittests/data/DCTEST1.xml.rename.csv
|
102
|
+
- unittests/data/DCTEST1wLookups.xml
|
103
|
+
- unittests/data/DCTEST1wLookups.xml.gdl
|
104
|
+
- unittests/data/GENERATED.gdl.xml
|
105
|
+
- unittests/data/Message.xml
|
106
|
+
- unittests/data/Message.xml.gdl
|
107
|
+
- unittests/data/Pricing2ndGuideline.xml
|
108
|
+
- unittests/data/Pricing2ndGuideline.xml.gdl
|
109
|
+
- unittests/data/Z-TEMP-Jeff.xml
|
110
|
+
- unittests/data/Z-TEMP-Jeff.xml.gdl
|
111
|
+
- unittests/tc_convert_xml_to_gdl.rb
|
112
|
+
- unittests/ts_allTests.rb
|
113
|
+
- xmlutils.gemspec
|
114
|
+
homepage: ''
|
115
|
+
licenses:
|
116
|
+
- Mine
|
117
|
+
metadata: {}
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 2.3.0
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: XML Utility classes library
|
138
|
+
test_files: []
|
139
|
+
has_rdoc:
|