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

root/branches/1_5/lib/wsdl/info.rb

Revision 1902, 0.9 kB (checked in by nahi, 1 year ago)
  • added support of all XML Schema facets for restriction. No validation implemented yet. (do you want to validate XML messages by soap4r?) closes #364.
  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1 # WSDL4R - WSDL information base.
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 module WSDL
10
11
12 class Info
13   attr_accessor :root
14   attr_accessor :parent
15   attr_accessor :id
16
17   def initialize
18     @root = nil
19     @parent = nil
20     @id = nil
21   end
22
23   def inspect
24     if self.respond_to?(:name)
25       sprintf("#<%s:0x%x %s>", self.class.name, __id__, self.name)
26     else
27       sprintf("#<%s:0x%x>", self.class.name, __id__)
28     end
29   end
30
31   def parse_element(element); end       # abstract
32  
33   def parse_attr(attr, value); end      # abstract
34
35   def parse_epilogue; end               # abstract
36
37 private
38
39   def to_int(value)
40     Integer(value.source)
41   end
42
43   def to_boolean(value)
44     s = value.source
45     s == "true" or s == "1"
46   end
47 end
48
49
50 end
Note: See TracBrowser for help on using the browser.