source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/wsdl/types.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 728 bytes
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
9require 'wsdl/info'
10
11
12module WSDL
13
14
15class 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
40end
41
42
43end
Note: See TracBrowser for help on using the repository browser.