Changeset 1905
- Timestamp:
- 07/22/07 22:59:12 (1 year ago)
- Files:
-
- trunk/lib/wsdl/xmlSchema/complexContent.rb (modified) (1 diff)
- trunk/lib/wsdl/xmlSchema/complexExtension.rb (modified) (3 diffs)
- trunk/lib/wsdl/xmlSchema/complexRestriction.rb (modified) (3 diffs)
- trunk/lib/wsdl/xmlSchema/complexType.rb (modified) (1 diff)
- trunk/lib/wsdl/xmlSchema/data.rb (modified) (1 diff)
- trunk/lib/wsdl/xmlSchema/element.rb (modified) (3 diffs)
- trunk/lib/wsdl/xmlSchema/schema.rb (modified) (3 diffs)
- trunk/lib/wsdl/xmlSchema/simpleExtension.rb (modified) (3 diffs)
- trunk/lib/wsdl/xmlSchema/simpleRestriction.rb (modified) (3 diffs)
- trunk/lib/wsdl/xmlSchema/whitespace.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/wsdl/xmlSchema/complexContent.rb
r1824 r1905 86 86 case attr 87 87 when MixedAttrName 88 @mixed = (value.source == 'true')88 @mixed = to_boolean(value) 89 89 else 90 90 nil trunk/lib/wsdl/xmlSchema/complexExtension.rb
r1824 r1905 18 18 attr_accessor :base 19 19 attr_reader :content 20 attr_accessor :anyattribute 20 21 21 22 def initialize … … 25 26 @content = nil 26 27 @attributes = XSD::NamedElements.new 28 @anyattribute = nil 27 29 end 28 30 … … 86 88 @attributes << o 87 89 o 90 when AnyAttributeName 91 @anyattribute = AnyAttribute.new 88 92 end 89 93 end trunk/lib/wsdl/xmlSchema/complexRestriction.rb
r1824 r1905 19 19 attr_reader :content 20 20 attr_reader :attributes 21 attr_accessor :anyattribute 21 22 22 23 def initialize … … 26 27 @content = nil 27 28 @attributes = XSD::NamedElements.new 29 @anyattribute = nil 28 30 end 29 31 … … 75 77 @attributes << o 76 78 o 79 when AnyAttributeName 80 @anyattribute = AnyAttribute.new 77 81 end 78 82 end trunk/lib/wsdl/xmlSchema/complexType.rb
r1904 r1905 147 147 case attr 148 148 when AbstractAttrName 149 @abstract = (value.source == 'true')149 @abstract = to_boolean(value) 150 150 when FinalAttrName 151 151 @final = value.source 152 152 when MixedAttrName 153 @mixed = (value.source == 'true')153 @mixed = to_boolean(value) 154 154 when NameAttrName 155 155 @name = XSD::QName.new(targetnamespace, value.source) trunk/lib/wsdl/xmlSchema/data.rb
r1904 r1905 106 106 UseAttrName = XSD::QName.new(nil, 'use') 107 107 ValueAttrName = XSD::QName.new(nil, 'value') 108 VersionAttrName = XSD::QName.new(nil, 'version') 108 109 109 110 trunk/lib/wsdl/xmlSchema/element.rb
r1903 r1905 54 54 attr_reader_ref :nillable 55 55 attr_reader_ref :default 56 attr_reader_ref :abstract 56 57 57 58 attr_accessor :ref … … 68 69 @nillable = nil 69 70 @default = nil 71 @abstract = false 70 72 @ref = nil 71 73 @refelement = nil … … 150 152 @minoccurs = Integer(value.source) 151 153 when NillableAttrName 152 @nillable = (value.source == 'true')154 @nillable = to_boolean(value) 153 155 when DefaultAttrName 154 156 @default = value.source 157 when AbstractAttrName 158 @abstract = to_boolean(value) 155 159 else 156 160 nil trunk/lib/wsdl/xmlSchema/schema.rb
r1824 r1905 24 24 attr_accessor :attributeformdefault 25 25 attr_accessor :elementformdefault 26 attr_accessor :version 26 27 27 28 attr_reader :importedschema … … 40 41 @location = nil 41 42 @root = self 43 @version = nil 42 44 end 43 45 … … 90 92 when ElementFormDefaultAttrName 91 93 @elementformdefault = value.source 94 when VersionAttrName 95 @version = value.source 92 96 else 93 97 nil trunk/lib/wsdl/xmlSchema/simpleExtension.rb
r1824 r1905 18 18 attr_reader :base 19 19 attr_reader :attributes 20 attr_accessor :anyattribute 20 21 21 22 def initialize … … 23 24 @base = nil 24 25 @attributes = XSD::NamedElements.new 26 @anyattribute = nil 25 27 end 26 28 … … 39 41 @attributes << o 40 42 o 43 when AnyAttributeName 44 @anyattribute = AnyAttribute.new 41 45 end 42 46 end trunk/lib/wsdl/xmlSchema/simpleRestriction.rb
r1903 r1905 30 30 attr_accessor :fractiondigits 31 31 attr_reader :fixed 32 attr_accessor :anyattribute 32 33 33 34 def initialize … … 40 41 @pattern = nil 41 42 @fixed = {} 43 @anyattribute = nil 42 44 end 43 45 … … 77 79 when FractionDigitsName 78 80 FractionDigits.new 81 when AnyAttributeName 82 @anyattribute = AnyAttribute.new 79 83 end 80 84 end trunk/lib/wsdl/xmlSchema/whitespace.rb
r1902 r1905 25 25 def parse_attr(attr, value) 26 26 case attr 27 when Fixed Name27 when FixedAttrName 28 28 parent.fixed[:whitespace] = to_boolean(value) 29 29 when ValueAttrName