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.
21
22
23
24
25
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 21
def initialize
super
@base = nil
@attributes = XSD::NamedElements.new
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
19
20
21
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 19
def attributes
@attributes
end
|
Returns the value of attribute base.
18
19
20
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 18
def base
@base
end
|
Instance Method Details
#parse_attr(attr, value) ⇒ Object
52
53
54
55
56
57
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 52
def parse_attr(attr, value)
case attr
when BaseAttrName
@base = value
end
end
|
#parse_element(element) ⇒ Object
#targetnamespace ⇒ Object
27
28
29
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 27
def targetnamespace
parent.targetnamespace
end
|
#valid?(value) ⇒ Boolean
31
32
33
|
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 31
def valid?(value)
true
end
|