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.



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

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

Instance Attribute Details

#itemtypeObject (readonly)

Returns the value of attribute itemtype.



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

def itemtype
  @itemtype
end

#local_simpletypeObject (readonly)

Returns the value of attribute local_simpletype.



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

def local_simpletype
  @local_simpletype
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



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

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

#parse_element(element) ⇒ Object



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

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