Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1905

Show
Ignore:
Timestamp:
07/22/07 22:59:12 (1 year ago)
Author:
nahi
Message:
  • let some attribute parsable; just parsed but not used for now.
    • anyAttribute attribute for <restriction> and <extension>
    • abstract attr for <element>
    • version attr for <schema>
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/wsdl/xmlSchema/complexContent.rb

    r1824 r1905  
    8686    case attr 
    8787    when MixedAttrName 
    88       @mixed = (value.source == 'true'
     88      @mixed = to_boolean(value
    8989    else 
    9090      nil 
  • trunk/lib/wsdl/xmlSchema/complexExtension.rb

    r1824 r1905  
    1818  attr_accessor :base 
    1919  attr_reader :content 
     20  attr_accessor :anyattribute 
    2021 
    2122  def initialize 
     
    2526    @content = nil 
    2627    @attributes = XSD::NamedElements.new 
     28    @anyattribute = nil 
    2729  end 
    2830 
     
    8688      @attributes << o 
    8789      o 
     90    when AnyAttributeName 
     91      @anyattribute = AnyAttribute.new 
    8892    end 
    8993  end 
  • trunk/lib/wsdl/xmlSchema/complexRestriction.rb

    r1824 r1905  
    1919  attr_reader :content 
    2020  attr_reader :attributes 
     21  attr_accessor :anyattribute 
    2122 
    2223  def initialize 
     
    2627    @content = nil 
    2728    @attributes = XSD::NamedElements.new 
     29    @anyattribute = nil 
    2830  end 
    2931 
     
    7577      @attributes << o 
    7678      o 
     79    when AnyAttributeName 
     80      @anyattribute = AnyAttribute.new 
    7781    end 
    7882  end 
  • trunk/lib/wsdl/xmlSchema/complexType.rb

    r1904 r1905  
    147147    case attr 
    148148    when AbstractAttrName 
    149       @abstract = (value.source == 'true'
     149      @abstract = to_boolean(value
    150150    when FinalAttrName 
    151151      @final = value.source 
    152152    when MixedAttrName 
    153       @mixed = (value.source == 'true'
     153      @mixed = to_boolean(value
    154154    when NameAttrName 
    155155      @name = XSD::QName.new(targetnamespace, value.source) 
  • trunk/lib/wsdl/xmlSchema/data.rb

    r1904 r1905  
    106106UseAttrName = XSD::QName.new(nil, 'use') 
    107107ValueAttrName = XSD::QName.new(nil, 'value') 
     108VersionAttrName = XSD::QName.new(nil, 'version') 
    108109 
    109110 
  • trunk/lib/wsdl/xmlSchema/element.rb

    r1903 r1905  
    5454  attr_reader_ref :nillable 
    5555  attr_reader_ref :default 
     56  attr_reader_ref :abstract 
    5657 
    5758  attr_accessor :ref 
     
    6869    @nillable = nil 
    6970    @default = nil 
     71    @abstract = false 
    7072    @ref = nil 
    7173    @refelement = nil 
     
    150152      @minoccurs = Integer(value.source) 
    151153    when NillableAttrName 
    152       @nillable = (value.source == 'true'
     154      @nillable = to_boolean(value
    153155    when DefaultAttrName 
    154156      @default = value.source 
     157    when AbstractAttrName 
     158      @abstract = to_boolean(value) 
    155159    else 
    156160      nil 
  • trunk/lib/wsdl/xmlSchema/schema.rb

    r1824 r1905  
    2424  attr_accessor :attributeformdefault 
    2525  attr_accessor :elementformdefault 
     26  attr_accessor :version 
    2627 
    2728  attr_reader :importedschema 
     
    4041    @location = nil 
    4142    @root = self 
     43    @version = nil 
    4244  end 
    4345 
     
    9092    when ElementFormDefaultAttrName 
    9193      @elementformdefault = value.source 
     94    when VersionAttrName 
     95      @version = value.source 
    9296    else 
    9397      nil 
  • trunk/lib/wsdl/xmlSchema/simpleExtension.rb

    r1824 r1905  
    1818  attr_reader :base 
    1919  attr_reader :attributes 
     20  attr_accessor :anyattribute 
    2021 
    2122  def initialize 
     
    2324    @base = nil 
    2425    @attributes = XSD::NamedElements.new 
     26    @anyattribute = nil 
    2527  end 
    2628 
     
    3941      @attributes << o 
    4042      o 
     43    when AnyAttributeName 
     44      @anyattribute = AnyAttribute.new 
    4145    end 
    4246  end 
  • trunk/lib/wsdl/xmlSchema/simpleRestriction.rb

    r1903 r1905  
    3030  attr_accessor :fractiondigits 
    3131  attr_reader :fixed 
     32  attr_accessor :anyattribute 
    3233 
    3334  def initialize 
     
    4041    @pattern = nil 
    4142    @fixed = {} 
     43    @anyattribute = nil 
    4244  end 
    4345   
     
    7779    when FractionDigitsName 
    7880      FractionDigits.new 
     81    when AnyAttributeName 
     82      @anyattribute = AnyAttribute.new 
    7983    end 
    8084  end 
  • trunk/lib/wsdl/xmlSchema/whitespace.rb

    r1902 r1905  
    2525  def parse_attr(attr, value) 
    2626    case attr 
    27     when FixedName 
     27    when FixedAttrName 
    2828      parent.fixed[:whitespace] = to_boolean(value) 
    2929    when ValueAttrName