Parent

Files

Class Index [+]

Quicksearch

WSDL::XMLSchema::ImportHandler

Attributes

schemalocation[R]
content[R]

Public Class Methods

new() click to toggle source
    # File lib/wsdl/xmlSchema/importHandler.rb, line 21
21:   def initialize
22:     @schemalocation = nil
23:     @content = nil
24:   end

Public Instance Methods

parse_schemalocation(location, root, parent) click to toggle source
    # File lib/wsdl/xmlSchema/importHandler.rb, line 26
26:   def parse_schemalocation(location, root, parent)
27:     @schemalocation = URI.parse(location)
28:     if @schemalocation.relative? and !parent.location.nil? and
29:         !parent.location.relative?
30:       @schemalocation = parent.location + @schemalocation
31:     end
32:     if root.importedschema.key?(@schemalocation)
33:       @content = root.importedschema[@schemalocation]
34:     else
35:       root.importedschema[@schemalocation] = nil      # placeholder
36:       @content = Importer.import(@schemalocation, root)
37:       root.importedschema[@schemalocation] = @content
38:     end
39:     @schemalocation
40:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.