Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/branches/1_5/lib/wsdl/xmlSchema/list.rb

Revision 1824, 0.8 kB (checked in by nahi, 2 years ago)
  • Copyright notice updated. add '2000-2007' uniformly.
Line 
1 # WSDL4R - XMLSchema list definition for WSDL.
2 # Copyright (C) 2000-2007  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
3
4 # This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
5 # redistribute it and/or modify it under the same terms of Ruby's license;
6 # either the dual license version in 2003, or any later version.
7
8
9 require 'wsdl/info'
10
11
12 module WSDL
13 module XMLSchema
14
15
16 class List < Info
17   attr_reader :itemtype
18   attr_reader :local_simpletype
19
20   def initialize
21     super()
22     @itemtype = nil
23     @local_simpletype = nil
24   end
25
26   def parse_element(element)
27     case element
28     when SimpleTypeName
29       @local_simpletype = SimpleType.new
30       @local_simpletype
31     else
32       nil
33     end
34   end
35
36   def parse_attr(attr, value)
37     case attr
38     when ItemTypeAttrName
39       @itemtype = value
40     else
41       nil
42     end
43   end
44 end
45
46
47 end
48 end
Note: See TracBrowser for help on using the browser.