Class WSDL::XMLSchema::Include
In: lib/wsdl/xmlSchema/include.rb
Parent: Info

Methods

Attributes

content  [R] 
schemalocation  [R] 

Public Class methods

[Source]

    # File lib/wsdl/xmlSchema/include.rb, line 21
21:   def initialize
22:     super
23:     @schemalocation = nil
24:     @content = nil
25:   end

Public Instance methods

[Source]

    # File lib/wsdl/xmlSchema/include.rb, line 31
31:   def parse_attr(attr, value)
32:     case attr
33:     when SchemaLocationAttrName
34:       @schemalocation = URI.parse(value.source)
35:       if @schemalocation.relative?
36:         @schemalocation = parent.location + @schemalocation
37:       end
38:       @content = import(@schemalocation)
39:       @schemalocation
40:     else
41:       nil
42:     end
43:   end

[Source]

    # File lib/wsdl/xmlSchema/include.rb, line 27
27:   def parse_element(element)
28:     nil
29:   end

Private Instance methods

[Source]

    # File lib/wsdl/xmlSchema/include.rb, line 47
47:   def import(location)
48:     Importer.import(location)
49:   end

[Validate]