| Class | WSDL::XMLSchema::SimpleType |
| In: |
wsdl/xmlSchema/simpleType.rb
|
| Parent: | Info |
| derivetype | [R] | |
| name | [RW] | |
| restriction | [R] |
# File wsdl/xmlSchema/simpleType.rb, line 43 def initialize(name = nil) super() @name = name @derivetype = nil @restriction = nil end
# File wsdl/xmlSchema/simpleType.rb, line 33 def base if @restriction @restriction.base elsif @extension @extension.base else raise ArgumentError.new("incomplete simpleType") end end
# File wsdl/xmlSchema/simpleType.rb, line 22 def check_lexical_format(value) if @restriction check_restriction(value) elsif @extension raise NotImplementedError # ToDo else raise ArgumentError.new("incomplete simpleType") end end
# File wsdl/xmlSchema/simpleType.rb, line 63 def parse_attr(attr, value) case attr when NameAttrName @name = XSD::QName.new(targetnamespace, value) end end
# File wsdl/xmlSchema/simpleType.rb, line 54 def parse_element(element) case element when RestrictionName @restriction = SimpleRestriction.new @derivetype = element.name @restriction end end