Included Modules

Files

Class Index [+]

Quicksearch

SOAP::Mapping::SchemaComplexTypeDefinition

Public Class Methods

new() click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 42
42:   def initialize
43:     @content = []
44:     @element_cache = {}
45:   end

Public Instance Methods

<<(ele) click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 51
51:   def <<(ele)
52:     @content << ele
53:   end
as_any?() click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 65
65:   def as_any?
66:     false
67:   end
as_array?() click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 69
69:   def as_array?
70:     false
71:   end
each() click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 55
55:   def each
56:     @content.each do |ele|
57:       yield ele
58:     end
59:   end
find_element(qname) click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 73
73:   def find_element(qname)
74:     @element_cache[qname] ||= search_element(qname)
75:   end
is_concrete_definition() click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 47
47:   def is_concrete_definition
48:     true
49:   end
size() click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 61
61:   def size
62:     @content.size
63:   end

Private Instance Methods

search_element(qname) click to toggle source
    # File lib/soap/mapping/schemadefinition.rb, line 79
79:   def search_element(qname)
80:     each do |ele|
81:       if ele.respond_to?(:find_element)
82:         found = ele.find_element(qname)
83:         return found if found
84:       else
85:         # relaxed match
86:         if ele.elename == qname or
87:             (qname.namespace.nil? and ele.elename.name == qname.name)
88:           return ele
89:         end
90:       end
91:     end
92:     nil
93:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.