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



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

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

#as_any?Boolean

Returns:

  • (Boolean)


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

def as_any?
  false
end

#as_array?Boolean

Returns:

  • (Boolean)


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

def as_array?
  false
end

#eachObject



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

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

#find_element(qname) ⇒ Object



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

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

#initializeObject



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

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

#is_concrete_definitionObject



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

def is_concrete_definition
  true
end

#sizeObject



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

def size
  @content.size
end