diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 08:14:57 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 08:14:57 +0000 |
| commit | 0eb20dc9b41da71b51540f75cfe955ed71420915 (patch) | |
| tree | 6c16302232c2b655cfd5ea406a9ac202814a8b35 /lib/wsdl/xmlSchema/sequence.rb | |
| parent | f54f1ce821930931cf490d6c7ac8f3f12baec3a1 (diff) | |
| download | ruby-0eb20dc9b41da71b51540f75cfe955ed71420915.tar.gz ruby-0eb20dc9b41da71b51540f75cfe955ed71420915.tar.xz ruby-0eb20dc9b41da71b51540f75cfe955ed71420915.zip | |
Mon Dec 24 17:06:37 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* {lib,test}/{soap,wsdl,xsd}: removed soap4r along to the discussion
at ruby-core and ruby-dev. see [ruby-core:12535], [ruby-dev:31969].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/wsdl/xmlSchema/sequence.rb')
| -rw-r--r-- | lib/wsdl/xmlSchema/sequence.rb | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/lib/wsdl/xmlSchema/sequence.rb b/lib/wsdl/xmlSchema/sequence.rb deleted file mode 100644 index 823fa3b7f..000000000 --- a/lib/wsdl/xmlSchema/sequence.rb +++ /dev/null @@ -1,69 +0,0 @@ -# WSDL4R - XMLSchema complexType definition for WSDL. -# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. - -# This program is copyrighted free software by NAKAMURA, Hiroshi. You can -# redistribute it and/or modify it under the same terms of Ruby's license; -# either the dual license version in 2003, or any later version. - - -require 'wsdl/info' - - -module WSDL -module XMLSchema - - -class Sequence < Info - attr_reader :minoccurs - attr_reader :maxoccurs - attr_reader :elements - - def initialize - super() - @minoccurs = '1' - @maxoccurs = '1' - @elements = [] - end - - def targetnamespace - parent.targetnamespace - end - - def elementformdefault - parent.elementformdefault - end - - def <<(element) - @elements << element - end - - def parse_element(element) - case element - when AnyName - o = Any.new - @elements << o - o - when ElementName - o = Element.new - @elements << o - o - else - nil - end - end - - def parse_attr(attr, value) - case attr - when MaxOccursAttrName - @maxoccurs = value.source - when MinOccursAttrName - @minoccurs = value.source - else - nil - end - end -end - - -end -end |
