Class: WSDL::XMLSchema::Any

Inherits:
Info
  • Object
show all
Defined in:
lib/wsdl/xmlSchema/any.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

#initializeAny



22
23
24
25
26
27
28
# File 'lib/wsdl/xmlSchema/any.rb', line 22

def initialize
  super()
  @maxoccurs = '1'
  @minoccurs = '1'
  @namespace = '##any'
  @process_contents = 'strict'
end

Instance Attribute Details

#maxoccursObject

Returns the value of attribute maxoccurs



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

def maxoccurs
  @maxoccurs
end

#minoccursObject

Returns the value of attribute minoccurs



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

def minoccurs
  @minoccurs
end

#namespaceObject

Returns the value of attribute namespace



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

def namespace
  @namespace
end

#process_contentsObject

Returns the value of attribute process_contents



20
21
22
# File 'lib/wsdl/xmlSchema/any.rb', line 20

def process_contents
  @process_contents
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/wsdl/xmlSchema/any.rb', line 38

def parse_attr(attr, value)
  case attr
  when MaxOccursAttrName
    @maxoccurs = value.source
  when MinOccursAttrName
    @minoccurs = value.source
  when NamespaceAttrName
    @namespace = value.source
  when ProcessContentsAttrName
    @process_contents = value.source
  else
    nil
  end
end

#parse_element(element) ⇒ Object



34
35
36
# File 'lib/wsdl/xmlSchema/any.rb', line 34

def parse_element(element)
  nil
end

#targetnamespaceObject



30
31
32
# File 'lib/wsdl/xmlSchema/any.rb', line 30

def targetnamespace
  parent.targetnamespace
end