/tools/Ruby/lib/ruby/1.8/wsdl/types.rb

http://github.com/agross/netopenspace · Ruby · 43 lines · 26 code · 12 blank · 5 comment · 0 complexity · 85380882ad79e8d02d6260df85825189 MD5 · raw file

  1. # WSDL4R - WSDL types definition.
  2. # Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
  3. # This program is copyrighted free software by NAKAMURA, Hiroshi. You can
  4. # redistribute it and/or modify it under the same terms of Ruby's license;
  5. # either the dual license version in 2003, or any later version.
  6. require 'wsdl/info'
  7. module WSDL
  8. class Types < Info
  9. attr_reader :schemas
  10. def initialize
  11. super
  12. @schemas = []
  13. end
  14. def parse_element(element)
  15. case element
  16. when SchemaName
  17. o = XMLSchema::Schema.new
  18. @schemas << o
  19. o
  20. when DocumentationName
  21. o = Documentation.new
  22. o
  23. else
  24. nil
  25. end
  26. end
  27. def parse_attr(attr, value)
  28. nil
  29. end
  30. end
  31. end