File: expectedProduct.rb

package info (click to toggle)
ruby-soap4r 2.0.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,032 kB
  • sloc: ruby: 52,729; xml: 266; sh: 42; javascript: 20; makefile: 13; perl: 10
file content (243 lines) | stat: -rw-r--r-- 4,246 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
require 'xsd/qname'

module WSDL; module Ref


# {urn:ref}Product
#   name - SOAP::SOAPString
#   rating - SOAP::SOAPString
class Product
  attr_accessor :name
  attr_accessor :rating

  def initialize(name = nil, rating = nil)
    @name = name
    @rating = rating
  end
end

# {urn:ref}Comment
#   xmlattr_msgid - SOAP::SOAPString
class Comment < ::String
  AttrMsgid = XSD::QName.new(nil, "msgid")

  def __xmlattr
    @__xmlattr ||= {}
  end

  def xmlattr_msgid
    __xmlattr[AttrMsgid]
  end

  def xmlattr_msgid=(value)
    __xmlattr[AttrMsgid] = value
  end

  def initialize(*arg)
    super
    @__xmlattr = {}
  end
end

# {urn:ref}_point
#   xmlattr_unit - SOAP::SOAPString
class C__point < ::String
  AttrUnit = XSD::QName.new(nil, "unit")

  def __xmlattr
    @__xmlattr ||= {}
  end

  def xmlattr_unit
    __xmlattr[AttrUnit]
  end

  def xmlattr_unit=(value)
    __xmlattr[AttrUnit] = value
  end

  def initialize(*arg)
    super
    @__xmlattr = {}
  end
end

# {urn:ref}Document
#   xmlattr_ID - SOAP::SOAPString
class Document < ::String
  AttrID = XSD::QName.new(nil, "ID")

  def __xmlattr
    @__xmlattr ||= {}
  end

  def xmlattr_ID
    __xmlattr[AttrID]
  end

  def xmlattr_ID=(value)
    __xmlattr[AttrID] = value
  end

  def initialize(*arg)
    super
    @__xmlattr = {}
  end
end

# {urn:ref}DerivedChoice_BaseSimpleContent
#   varStringExt - SOAP::SOAPString
#   varFloatExt - SOAP::SOAPFloat
#   xmlattr_ID - SOAP::SOAPString
#   xmlattr_attrStringExt - SOAP::SOAPString
class DerivedChoice_BaseSimpleContent < Document
  AttrAttrStringExt = XSD::QName.new(nil, "attrStringExt")
  AttrID = XSD::QName.new(nil, "ID")

  attr_accessor :varStringExt
  attr_accessor :varFloatExt

  def __xmlattr
    @__xmlattr ||= {}
  end

  def xmlattr_ID
    __xmlattr[AttrID]
  end

  def xmlattr_ID=(value)
    __xmlattr[AttrID] = value
  end

  def xmlattr_attrStringExt
    __xmlattr[AttrAttrStringExt]
  end

  def xmlattr_attrStringExt=(value)
    __xmlattr[AttrAttrStringExt] = value
  end

  def initialize(varStringExt = nil, varFloatExt = nil)
    @varStringExt = varStringExt
    @varFloatExt = varFloatExt
    @__xmlattr = {}
  end
end

# {urn:ref}Rating
class Rating < ::String
  C_0 = new("0")
  C_1 = new("+1")
  C_1_2 = new("-1")
end

# {urn:ref}Product-Bag
#   bag - WSDL::Ref::Product
#   rating - SOAP::SOAPString
#   comment_1 - WSDL::Ref::ProductBag::Comment_1
#   comment_2 - WSDL::Ref::Comment
#   m___point - WSDL::Ref::C__point
#   xmlattr_version - SOAP::SOAPString
#   xmlattr_yesno - SOAP::SOAPString
class ProductBag
  AttrVersion = XSD::QName.new("urn:ref", "version")
  AttrYesno = XSD::QName.new("urn:ref", "yesno")

  # inner class for member: Comment_1
  # {}Comment_1
  #   xmlattr_msgid - SOAP::SOAPString
  class Comment_1 < ::String
    AttrMsgid = XSD::QName.new(nil, "msgid")

    def __xmlattr
      @__xmlattr ||= {}
    end

    def xmlattr_msgid
      __xmlattr[AttrMsgid]
    end

    def xmlattr_msgid=(value)
      __xmlattr[AttrMsgid] = value
    end

    def initialize(*arg)
      super
      @__xmlattr = {}
    end
  end

  attr_accessor :bag
  attr_accessor :rating
  attr_accessor :comment_1
  attr_accessor :comment_2

  def m___point
    @v___point
  end

  def m___point=(value)
    @v___point = value
  end

  def __xmlattr
    @__xmlattr ||= {}
  end

  def xmlattr_version
    __xmlattr[AttrVersion]
  end

  def xmlattr_version=(value)
    __xmlattr[AttrVersion] = value
  end

  def xmlattr_yesno
    __xmlattr[AttrYesno]
  end

  def xmlattr_yesno=(value)
    __xmlattr[AttrYesno] = value
  end

  def initialize(bag = [], rating = [], comment_1 = [], comment_2 = [], v___point = nil)
    @bag = bag
    @rating = rating
    @comment_1 = comment_1
    @comment_2 = comment_2
    @v___point = v___point
    @__xmlattr = {}
  end
end

# {urn:ref}Creator
#   xmlattr_Role - SOAP::SOAPString
class Creator < ::String
  AttrRole = XSD::QName.new(nil, "Role")

  def __xmlattr
    @__xmlattr ||= {}
  end

  def xmlattr_Role
    __xmlattr[AttrRole]
  end

  def xmlattr_Role=(value)
    __xmlattr[AttrRole] = value
  end

  def initialize(*arg)
    super
    @__xmlattr = {}
  end
end

# {urn:ref}yesno
class Yesno < ::String
  N = new("N")
  Y = new("Y")
end


end; end