Class: WSDL::XMLSchema::SimpleContent

Inherits:
Info show all
Defined in:
lib/wsdl/xmlSchema/simpleContent.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_attr, #parse_epilogue

Constructor Details

#initializeSimpleContent

Returns a new instance of SimpleContent.



26
27
28
29
30
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 26

def initialize
  super
  @restriction = nil
  @extension = nil
end

Instance Attribute Details

#extensionObject (readonly)

Returns the value of attribute extension.



20
21
22
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 20

def extension
  @extension
end

#restrictionObject (readonly)

Returns the value of attribute restriction.



19
20
21
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 19

def restriction
  @restriction
end

Instance Method Details

#attributesObject



36
37
38
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 36

def attributes
  content.attributes
end

#baseObject



32
33
34
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 32

def base
  content.base
end

#check_lexical_format(value) ⇒ Object



22
23
24
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 22

def check_lexical_format(value)
  check(value)
end

#parse_element(element) ⇒ Object



44
45
46
47
48
49
50
51
52
53
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 44

def parse_element(element)
  case element
  when RestrictionName
    @restriction = SimpleRestriction.new
    @restriction
  when ExtensionName
    @extension = SimpleExtension.new
    @extension
  end
end

#targetnamespaceObject



40
41
42
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 40

def targetnamespace
  parent.targetnamespace
end