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
Returns a new instance of Import.
[View source]
22
23
24
25
26
|
# File 'lib/wsdl/xmlSchema/import.rb', line 22
def initialize
super
@namespace = nil
@handler = ImportHandler.new
end
|
Instance Attribute Details
Returns the value of attribute namespace.
20
21
22
|
# File 'lib/wsdl/xmlSchema/import.rb', line 20
def namespace
@namespace
end
|
Instance Method Details
[View source]
32
33
34
|
# File 'lib/wsdl/xmlSchema/import.rb', line 32
def content
@handler.content
end
|
[View source]
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/wsdl/xmlSchema/import.rb', line 40
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
|
[View source]
36
37
38
|
# File 'lib/wsdl/xmlSchema/import.rb', line 36
def parse_element(element)
nil
end
|
[View source]
28
29
30
|
# File 'lib/wsdl/xmlSchema/import.rb', line 28
def schemalocation
@handler.schemalocation
end
|