Class: WSDL::XMLSchema::SimpleExtension

Inherits:
Info
  • Object
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

#initializeSimpleExtension

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

#attributesObject (readonly)

Returns the value of attribute attributes



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

def attributes
  @attributes
end

#baseObject (readonly)

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



44
45
46
47
48
49
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 44

def parse_attr(attr, value)
  case attr
  when BaseAttrName
    @base = value
  end
end

#parse_element(element) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 35

def parse_element(element)
  case element
  when AttributeName
    o = Attribute.new
    @attributes << o
    o
  end
end

#targetnamespaceObject



27
28
29
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 27

def targetnamespace
  parent.targetnamespace
end

#valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/wsdl/xmlSchema/simpleExtension.rb', line 31

def valid?(value)
  true
end