Module: SOAP::Mapping::SchemaComplexTypeDefinition

Includes:
Enumerable
Included in:
SchemaChoiceDefinition, SchemaEmptyDefinition, SchemaSequenceDefinition
Defined in:
lib/soap/mapping/schemadefinition.rb

Instance Method Summary collapse

Instance Method Details

#<<(ele) ⇒ Object



51
52
53
# File 'lib/soap/mapping/schemadefinition.rb', line 51

def <<(ele)
  @content << ele
end

#as_any?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/soap/mapping/schemadefinition.rb', line 65

def as_any?
  false
end

#as_array?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/soap/mapping/schemadefinition.rb', line 69

def as_array?
  false
end

#eachObject



55
56
57
58
59
# File 'lib/soap/mapping/schemadefinition.rb', line 55

def each
  @content.each do |ele|
    yield ele
  end
end

#find_element(qname) ⇒ Object



73
74
75
# File 'lib/soap/mapping/schemadefinition.rb', line 73

def find_element(qname)
  @element_cache[qname] ||= search_element(qname)
end

#initializeObject



42
43
44
45
# File 'lib/soap/mapping/schemadefinition.rb', line 42

def initialize
  @content = []
  @element_cache = {}
end

#is_concrete_definitionObject



47
48
49
# File 'lib/soap/mapping/schemadefinition.rb', line 47

def is_concrete_definition
  true
end

#sizeObject



61
62
63
# File 'lib/soap/mapping/schemadefinition.rb', line 61

def size
  @content.size
end