In Files

  • wsdl/xmlSchema/import.rb

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::Import

Attributes

content[R]
namespace[R]
schemalocation[R]

Public Class Methods

new() click to toggle source
 
               # File wsdl/xmlSchema/import.rb, line 22
def initialize
  super
  @namespace = nil
  @schemalocation = nil
  @content = nil
end
            

Public Instance Methods

parse_attr(attr, value) click to toggle source
 
               # File wsdl/xmlSchema/import.rb, line 33
def parse_attr(attr, value)
  case attr
  when NamespaceAttrName
    @namespace = value.source
  when SchemaLocationAttrName
    @schemalocation = URI.parse(value.source)
    if @schemalocation.relative? and !parent.location.nil? and
        !parent.location.relative?
      @schemalocation = parent.location + @schemalocation
    end
    if root.importedschema.key?(@schemalocation)
      @content = root.importedschema[@schemalocation]
    else
      root.importedschema[@schemalocation] = nil      # placeholder
      @content = import(@schemalocation)
      root.importedschema[@schemalocation] = @content
    end
    @schemalocation
  else
    nil
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/xmlSchema/import.rb, line 29
def parse_element(element)
  nil
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus