class LolSoap::WSDLParser::Element
Constants
- QUALIFIED
Attributes
form[R]
Public Class Methods
new(*params)
click to toggle source
Calls superclass method
LolSoap::WSDLParser::Node::new
# File lib/lolsoap/wsdl_parser.rb, line 47 def initialize(*params) super(*params) @form = node.attr('form') || schema.default_form @namespace, @name = parser.namespace_and_name(node, node.attr('name').to_s, default_namespace) end
Public Instance Methods
default_namespace()
click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 76 def default_namespace target_namespace end
qualified?()
click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 72 def qualified? form == QUALIFIED end
singular()
click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 68 def singular max_occurs.empty? || max_occurs == '1' end
type()
click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 55 def type if complex_type = node.at_xpath('xs:complexType', parser.ns) type = Type.new(parser, schema, complex_type) { :elements => type.elements, :namespace => type.namespace, :attributes => type.attributes } elsif type = node.attr('type') parser.namespace_and_name(node, type, target_namespace) end end
Private Instance Methods
max_occurs()
click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 82 def max_occurs @max_occurs ||= node.attribute('maxOccurs').to_s end