WSDL::Import (Class)

In: wsdl/import.rb
Parent: Info

Methods

Attributes

content  [R] 
location  [R] 
namespace  [R] 

Public Class methods

[Source]

# File wsdl/import.rb, line 21
  def initialize
    super
    @namespace = nil
    @location = nil
    @content = nil
    @web_client = nil
  end

Public Instance methods

[Source]

# File wsdl/import.rb, line 39
  def parse_attr(attr, value)
    case attr
    when NamespaceAttrName
      @namespace = value
      if @content
        @content.targetnamespace = @namespace
      end
      @namespace
    when LocationAttrName
      @location = value
      @content = import(@location)
      if @content.is_a?(Definitions)
        @content.root = root
        if @namespace
          @content.targetnamespace = @namespace
        end
      end
      @location
    else
      nil
    end
  end

[Source]

# File wsdl/import.rb, line 29
  def parse_element(element)
    case element
    when DocumentationName
      o = Documentation.new
      o
    else
      nil
    end
  end

[Validate]