Class: WSDL::XMLSchema::SimpleExtension
- Inherits:
-
Info
show all
- Defined in:
- lib/wsdl/xmlSchema/simpleExtension.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
Returns a new instance of SimpleExtension.
22
23
24
25
26
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 22
def initialize
super
@base = nil
@attributes = XSD::NamedElements.new
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
20
21
22
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 20
def attributes
@attributes
end
|
Returns the value of attribute base.
19
20
21
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 19
def base
@base
end
|
Instance Method Details
#parse_attr(attr, value) ⇒ Object
53
54
55
56
57
58
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 53
def parse_attr(attr, value)
case attr
when BaseAttrName
@base = value
end
end
|
#parse_element(element) ⇒ Object
#targetnamespace ⇒ Object
28
29
30
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 28
def targetnamespace
parent.targetnamespace
end
|
#valid?(value) ⇒ Boolean
32
33
34
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 32
def valid?(value)
true
end
|