Class: WsdlMapper::SvcDescParsing::TypesParser
- Inherits:
-
ParserBase
- Object
- Parsing::Base
- ParserBase
- WsdlMapper::SvcDescParsing::TypesParser
- Defined in:
- lib/wsdl_mapper/svc_desc_parsing/types_parser.rb
Constant Summary
Constant Summary
Constants inherited from ParserBase
ParserBase::Soap, ParserBase::SoapEnc, ParserBase::SoapHttp
Constants included from Wsdl11
Wsdl11::ARRAY_TYPE, Wsdl11::BINDING, Wsdl11::DEFINITIONS, Wsdl11::DOCUMENTATION, Wsdl11::FAULT, Wsdl11::INPUT, Wsdl11::MESSAGE, Wsdl11::NS, Wsdl11::OPERATION, Wsdl11::OUTPUT, Wsdl11::PART, Wsdl11::PORT, Wsdl11::PORT_TYPE, Wsdl11::SERVICE, Wsdl11::TYPES
Constants inherited from Parsing::Base
Parsing::Base::NS_DECL_PREFIX, Parsing::Base::TARGET_NS
Instance Attribute Summary
Attributes included from Parsing::Logging
Instance Method Summary (collapse)
Methods inherited from Parsing::Base
Methods included from Parsing::Logging
Constructor Details
This class inherits a constructor from WsdlMapper::Parsing::Base
Instance Method Details
- (Object) parse(node)
7 8 9 10 11 |
# File 'lib/wsdl_mapper/svc_desc_parsing/types_parser.rb', line 7 def parse(node) each_element node do |child| parse_types_child child end end |
- (Object) parse_schema(node)
22 23 24 25 26 27 28 |
# File 'lib/wsdl_mapper/svc_desc_parsing/types_parser.rb', line 22 def parse_schema(node) parser = WsdlMapper::DomParsing::Parser.new @base.description.add_schema parser.parse(node, parse_only: true) parser.log_msgs.each do |msg| @base.log_msgs << msg end end |
- (Object) parse_types_child(node)
13 14 15 16 17 18 19 20 |
# File 'lib/wsdl_mapper/svc_desc_parsing/types_parser.rb', line 13 def parse_types_child(node) case get_name node when WsdlMapper::DomParsing::Xsd::SCHEMA parse_schema node else log_msg node, :unknown end end |