Flowdock
method

child_defined_complextype

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: WSDL::XMLSchema::ComplexType
child_defined_complextype(name) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/wsdl/soap/complexType.rb, line 74
  def child_defined_complextype(name)
    ele = nil
    case compoundtype
    when :TYPE_STRUCT, :TYPE_MAP
      unless ele = find_element(name)
        if name.namespace.nil?
          ele = find_element_by_name(name.name)
        end
      end
    when :TYPE_ARRAY
      if content.elements.size == 1
        ele = content.elements[0]
      else
        raise RuntimeError.new("Assert: must not reach.")
      end
    else
      raise RuntimeError.new("Assert: Not implemented.")
    end
    unless ele
      raise RuntimeError.new("Cannot find #{name} as a children of #{@name}.")
    end
    ele.local_complextype
  end
Register or log in to add new notes.