Parent

Files

Class Index [+]

Quicksearch

WSDL::XMLSchema::SimpleContent

Attributes

restriction[R]
extension[R]

Public Class Methods

new() click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 25
25:   def initialize
26:     super
27:     @restriction = nil
28:     @extension = nil
29:   end

Public Instance Methods

attributes() click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 35
35:   def attributes
36:     content.attributes
37:   end
base() click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 31
31:   def base
32:     content.base
33:   end
check_lexical_format(value) click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 21
21:   def check_lexical_format(value)
22:     check(value)
23:   end
parse_element(element) click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 43
43:   def parse_element(element)
44:     case element
45:     when RestrictionName
46:       @restriction = SimpleRestriction.new
47:       @restriction
48:     when ExtensionName
49:       @extension = SimpleExtension.new
50:       @extension
51:     end
52:   end
targetnamespace() click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 39
39:   def targetnamespace
40:     parent.targetnamespace
41:   end

Private Instance Methods

check(value) click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 60
60:   def check(value)
61:     unless content.valid?(value)
62:       raise XSD::ValueSpaceError.new("#{@name}: cannot accept '#{value}'")
63:     end
64:   end
content() click to toggle source
    # File lib/wsdl/xmlSchema/simpleContent.rb, line 56
56:   def content
57:     @restriction || @extension
58:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.