|
Revision 1824, 0.7 kB
(checked in by nahi, 2 years ago)
|
- Copyright notice updated. add '2000-2007' uniformly.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
# WSDL4R - WSDL types definition. |
|---|
| 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 |
|
|---|
| 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 |
o.location = parent.location |
|---|
| 28 |
@schemas << o |
|---|
| 29 |
o |
|---|
| 30 |
when DocumentationName |
|---|
| 31 |
o = Documentation.new |
|---|
| 32 |
o |
|---|
| 33 |
else |
|---|
| 34 |
nil |
|---|
| 35 |
end |
|---|
| 36 |
end |
|---|
| 37 |
|
|---|
| 38 |
def parse_attr(attr, value) |
|---|
| 39 |
nil |
|---|
| 40 |
end |
|---|
| 41 |
end |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
end |
|---|