In Files

  • wsdl/binding.rb
  • wsdl/data.rb
  • wsdl/definitions.rb
  • wsdl/documentation.rb
  • wsdl/import.rb
  • wsdl/importer.rb
  • wsdl/info.rb
  • wsdl/message.rb
  • wsdl/operation.rb
  • wsdl/operationBinding.rb
  • wsdl/param.rb
  • wsdl/parser.rb
  • wsdl/part.rb
  • wsdl/port.rb
  • wsdl/portType.rb
  • wsdl/service.rb
  • wsdl/soap/address.rb
  • wsdl/soap/binding.rb
  • wsdl/soap/body.rb
  • wsdl/soap/cgiStubCreator.rb
  • wsdl/soap/classDefCreator.rb
  • wsdl/soap/classDefCreatorSupport.rb
  • wsdl/soap/clientSkeltonCreator.rb
  • wsdl/soap/complexType.rb
  • wsdl/soap/data.rb
  • wsdl/soap/definitions.rb
  • wsdl/soap/driverCreator.rb
  • wsdl/soap/element.rb
  • wsdl/soap/fault.rb
  • wsdl/soap/header.rb
  • wsdl/soap/headerfault.rb
  • wsdl/soap/mappingRegistryCreator.rb
  • wsdl/soap/methodDefCreator.rb
  • wsdl/soap/operation.rb
  • wsdl/soap/servantSkeltonCreator.rb
  • wsdl/soap/standaloneServerStubCreator.rb
  • wsdl/soap/wsdl2ruby.rb
  • wsdl/types.rb
  • wsdl/wsdl.rb
  • wsdl/xmlSchema/all.rb
  • wsdl/xmlSchema/annotation.rb
  • wsdl/xmlSchema/any.rb
  • wsdl/xmlSchema/attribute.rb
  • wsdl/xmlSchema/choice.rb
  • wsdl/xmlSchema/complexContent.rb
  • wsdl/xmlSchema/complexType.rb
  • wsdl/xmlSchema/content.rb
  • wsdl/xmlSchema/data.rb
  • wsdl/xmlSchema/element.rb
  • wsdl/xmlSchema/enumeration.rb
  • wsdl/xmlSchema/import.rb
  • wsdl/xmlSchema/importer.rb
  • wsdl/xmlSchema/include.rb
  • wsdl/xmlSchema/length.rb
  • wsdl/xmlSchema/parser.rb
  • wsdl/xmlSchema/pattern.rb
  • wsdl/xmlSchema/schema.rb
  • wsdl/xmlSchema/sequence.rb
  • wsdl/xmlSchema/simpleContent.rb
  • wsdl/xmlSchema/simpleExtension.rb
  • wsdl/xmlSchema/simpleRestriction.rb
  • wsdl/xmlSchema/simpleType.rb
  • wsdl/xmlSchema/unique.rb
  • wsdl/xmlSchema/xsd2ruby.rb

Class/Module Index [+]

Quicksearch

WSDL

This program is copyrighted free software by NAKAMURA, Hiroshi. You can redistribute it and/or modify it under the same terms of Ruby's license; either the dual license version in 2003, or any later version.

Public Instance Methods

dump_arraydef(complextype) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 266
def dump_arraydef(complextype)
  qname = complextype.name
  c = XSD::CodeGen::ClassDef.new(create_class_name(qname), '::Array')
  c.comment = "#{qname}"
  child_type = complextype.child_type
  c.def_classvar('schema_type', ndq(child_type.name))
  c.def_classvar('schema_ns', ndq(child_type.namespace))
  child_element = complextype.find_aryelement
  schema_element = []
  if child_type == XSD::AnyTypeName
    type = nil
  elsif child_element and (klass = element_basetype(child_element))
    type = klass.name
  elsif child_type
    type = create_class_name(child_type)
  else
    type = nil
  end
  if child_element
    if child_element.map_as_array?
      type << '[]' if type
    end
    child_element_name = child_element.name
  else
    child_element_name = DEFAULT_ITEM_NAME
  end
  schema_element << [child_element_name.name, child_element_name, type]
  c.def_classvar('schema_element',
    '[' +
      schema_element.collect { |varname, name, type|
        '[' +
          (
            if name
              varname.dump + ', [' + ndq(type) + ', ' + dqname(name) + ']'
            else
              varname.dump + ', ' + ndq(type)
            end
          ) +
        ']'
      }.join(', ') +
    ']'
  )
  c.dump
end
            
name_attribute(attribute) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 258
def name_attribute(attribute)
  return attribute.name if attribute.name 
  return attribute.ref if attribute.ref
  raise RuntimeError.new("cannot define name of #{attribute}")
end
            
name_element(element) click to toggle source
 
               # File wsdl/soap/classDefCreator.rb, line 252
def name_element(element)
  return element.name if element.name 
  return element.ref if element.ref
  raise RuntimeError.new("cannot define name of #{element}")
end