Class WSDL::XMLSchema::Content
In:
Parent: Info

Methods

Attributes

contents  [R] 
elements  [R] 
final  [RW] 
mixed  [RW] 
type  [RW] 

Public Class methods

[Source]

23:   def initialize
24:     super()
25:     @final = nil
26:     @mixed = false
27:     @type = nil
28:     @contents = []
29:     @elements = []
30:   end

Public Instance methods

[Source]

36:   def <<(content)
37:     @contents << content
38:     update_elements
39:   end

[Source]

41:   def each
42:     @contents.each do |content|
43:       yield content
44:     end
45:   end

[Source]

67:   def parse_attr(attr, value)
68:     case attr
69:     when FinalAttrName
70:       @final = value.source
71:     when MixedAttrName
72:       @mixed = (value.source == 'true')
73:     else
74:       nil
75:     end
76:   end

[Source]

47:   def parse_element(element)
48:     case element
49:     when AllName, SequenceName, ChoiceName
50:       o = Content.new
51:       o.type = element.name
52:       @contents << o
53:       o
54:     when AnyName
55:       o = Any.new
56:       @contents << o
57:       o
58:     when ElementName
59:       o = Element.new
60:       @contents << o
61:       o
62:     else
63:       nil
64:     end
65:   end

[Source]

78:   def parse_epilogue
79:     update_elements
80:   end

[Source]

32:   def targetnamespace
33:     parent.targetnamespace
34:   end

Search

Google

Ruby API Docs

Links