Class: WSDL::XMLSchema::Import

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

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeImport

Returns a new instance of Import.



21
22
23
24
25
# File 'lib/wsdl/xmlSchema/import.rb', line 21

def initialize
  super
  @namespace = nil
  @handler = ImportHandler.new
end

Instance Attribute Details

#namespaceObject (readonly)

Returns the value of attribute namespace.



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

def namespace
  @namespace
end

Instance Method Details

#contentObject



31
32
33
# File 'lib/wsdl/xmlSchema/import.rb', line 31

def content
  @handler.content
end

#parse_attr(attr, value) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/wsdl/xmlSchema/import.rb', line 39

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

#parse_element(element) ⇒ Object



35
36
37
# File 'lib/wsdl/xmlSchema/import.rb', line 35

def parse_element(element)
  nil
end

#schemalocationObject



27
28
29
# File 'lib/wsdl/xmlSchema/import.rb', line 27

def schemalocation
  @handler.schemalocation
end