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/simpleContent.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/simpleContent.rb')
| -rw-r--r-- | lib/wsdl/xmlSchema/simpleContent.rb | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/lib/wsdl/xmlSchema/simpleContent.rb b/lib/wsdl/xmlSchema/simpleContent.rb deleted file mode 100644 index e1f35c88b..000000000 --- a/lib/wsdl/xmlSchema/simpleContent.rb +++ /dev/null @@ -1,65 +0,0 @@ -# WSDL4R - XMLSchema simpleContent definition for WSDL. -# Copyright (C) 2004, 2005 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' -require 'xsd/namedelements' - - -module WSDL -module XMLSchema - - -class SimpleContent < Info - attr_reader :restriction - attr_reader :extension - - def check_lexical_format(value) - check(value) - end - - def initialize - super - @restriction = nil - @extension = nil - end - - def base - content.base - end - - def targetnamespace - parent.targetnamespace - end - - def parse_element(element) - case element - when RestrictionName - @restriction = SimpleRestriction.new - @restriction - when ExtensionName - @extension = SimpleExtension.new - @extension - end - end - -private - - def content - @restriction || @extension - end - - def check(value) - unless content.valid?(value) - raise XSD::ValueSpaceError.new("#{@name}: cannot accept '#{value}'") - end - end -end - - -end -end |
