Line | |
---|
1 | # WSDL4R - WSDL types definition.
|
---|
2 | # Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <[email protected]>.
|
---|
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 |
|
---|
14 |
|
---|
15 | class Types < Info
|
---|
16 | attr_reader :schemas
|
---|
17 |
|
---|
18 | def initialize
|
---|
19 | super
|
---|
20 | @schemas = []
|
---|
21 | end
|
---|
22 |
|
---|
23 | def parse_element(element)
|
---|
24 | case element
|
---|
25 | when SchemaName
|
---|
26 | o = XMLSchema::Schema.new
|
---|
27 | @schemas << o
|
---|
28 | o
|
---|
29 | when DocumentationName
|
---|
30 | o = Documentation.new
|
---|
31 | o
|
---|
32 | else
|
---|
33 | nil
|
---|
34 | end
|
---|
35 | end
|
---|
36 |
|
---|
37 | def parse_attr(attr, value)
|
---|
38 | nil
|
---|
39 | end
|
---|
40 | end
|
---|
41 |
|
---|
42 |
|
---|
43 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.