Changeset 1911
- Timestamp:
- 08/05/07 00:06:28 (1 year ago)
- Files:
-
- trunk/lib/wsdl/soap/classDefCreator.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/classDefCreatorSupport.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/mappingRegistryCreatorSupport.rb (modified) (1 diff)
- trunk/lib/wsdl/xmlSchema/simpleRestriction.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/wsdl/soap/classDefCreator.rb
r1906 r1911 142 142 def dump_simpletypedef_restriction(qname, typedef, qualified) 143 143 restriction = typedef.restriction 144 if restriction.enumeration.empty?144 unless restriction.enumeration? 145 145 # not supported. minlength? 146 146 return nil trunk/lib/wsdl/soap/classDefCreatorSupport.rb
r1895 r1911 108 108 if element.type == XSD::AnyTypeName 109 109 nil 110 elsif @simpletypes[element.type] 111 create_class_name(element.type, @modulepath) 110 elsif simpletype = @simpletypes[element.type] 111 if simpletype.restriction and simpletype.restriction.enumeration? 112 create_class_name(element.type, @modulepath) 113 else 114 nil 115 end 112 116 elsif klass = element_basetype(element) 113 117 klass.name trunk/lib/wsdl/soap/mappingRegistryCreatorSupport.rb
r1906 r1911 224 224 def dump_simpletypedef_restriction(qname, typedef, as_element, qualified) 225 225 restriction = typedef.restriction 226 if restriction.enumeration.empty?226 unless restriction.enumeration? 227 227 # not supported. minlength? 228 228 return nil trunk/lib/wsdl/xmlSchema/simpleRestriction.rb
r1905 r1911 51 51 return false unless check_pattern(value) 52 52 true 53 end 54 55 def enumeration? 56 !@enumeration.empty? 53 57 end 54 58