Class: WSDL::XMLSchema::Include
- Defined in:
- lib/wsdl/xmlSchema/include.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#schemalocation ⇒ Object
readonly
Returns the value of attribute schemalocation.
Attributes inherited from Info
Instance Method Summary collapse
-
#initialize ⇒ Include
constructor
A new instance of Include.
- #parse_attr(attr, value) ⇒ Object
- #parse_element(element) ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ Include
Returns a new instance of Include.
21 22 23 24 25 |
# File 'lib/wsdl/xmlSchema/include.rb', line 21 def initialize super @schemalocation = nil @content = nil end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
19 20 21 |
# File 'lib/wsdl/xmlSchema/include.rb', line 19 def content @content end |
#schemalocation ⇒ Object (readonly)
Returns the value of attribute schemalocation
18 19 20 |
# File 'lib/wsdl/xmlSchema/include.rb', line 18 def schemalocation @schemalocation end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/wsdl/xmlSchema/include.rb', line 31 def parse_attr(attr, value) case attr when SchemaLocationAttrName @schemalocation = URI.parse(value.source) if @schemalocation.relative? @schemalocation = parent.location + @schemalocation end @content = import(@schemalocation) @schemalocation else nil end end |
#parse_element(element) ⇒ Object
27 28 29 |
# File 'lib/wsdl/xmlSchema/include.rb', line 27 def parse_element(element) nil end |