Class: WSDL::XMLSchema::List

Inherits:
Info show all
Defined in:
lib/wsdl/xmlSchema/list.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeList

Returns a new instance of List.



21
22
23
24
25
# File 'lib/wsdl/xmlSchema/list.rb', line 21

def initialize
  super()
  @itemtype = nil
  @local_simpletype = nil
end

Instance Attribute Details

#itemtypeObject (readonly)

Returns the value of attribute itemtype.



18
19
20
# File 'lib/wsdl/xmlSchema/list.rb', line 18

def itemtype
  @itemtype
end

#local_simpletypeObject (readonly)

Returns the value of attribute local_simpletype.



19
20
21
# File 'lib/wsdl/xmlSchema/list.rb', line 19

def local_simpletype
  @local_simpletype
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/wsdl/xmlSchema/list.rb', line 37

def parse_attr(attr, value)
  case attr
  when ItemTypeAttrName
    @itemtype = value
  else
    nil
  end
end

#parse_element(element) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/wsdl/xmlSchema/list.rb', line 27

def parse_element(element)
  case element
  when SimpleTypeName
    @local_simpletype = SimpleType.new
    @local_simpletype
  else
    nil
  end
end