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

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

Revision 1824, 0.6 kB (checked in by nahi, 2 years ago)
  • Copyright notice updated. add '2000-2007' uniformly.
Line 
1 # WSDL4R - XMLSchema pattern 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 Pattern < Info
17   def initialize
18     super
19   end
20
21   def parse_element(element)
22     nil
23   end
24
25   def parse_attr(attr, value)
26     case attr
27     when ValueAttrName
28       parent.pattern = /\A#{value.source}\z/n
29       value.source
30     end
31   end
32 end
33
34
35 end
36 end
Note: See TracBrowser for help on using the browser.