Class: WSDL::XMLSchema::Include

Inherits:
Info show all
Defined in:
lib/wsdl/xmlSchema/include.rb

Instance Attribute Summary

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeInclude

Returns a new instance of Include.



19
20
21
22
# File 'lib/wsdl/xmlSchema/include.rb', line 19

def initialize
  super
  @handler = ImportHandler.new
end

Instance Method Details

#contentObject



28
29
30
# File 'lib/wsdl/xmlSchema/include.rb', line 28

def content
  @handler.content
end

#parse_attr(attr, value) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/wsdl/xmlSchema/include.rb', line 36

def parse_attr(attr, value)
  case attr
  when SchemaLocationAttrName
    @handler.parse_schemalocation(value.source, root, parent)
  else
    nil
  end
end

#parse_element(element) ⇒ Object



32
33
34
# File 'lib/wsdl/xmlSchema/include.rb', line 32

def parse_element(element)
  nil
end

#schemalocationObject



24
25
26
# File 'lib/wsdl/xmlSchema/include.rb', line 24

def schemalocation
  @handler.schemalocation
end