Class: WSDL::XMLSchema::SimpleContent
- Defined in:
- lib/wsdl/xmlSchema/simpleContent.rb
Instance Attribute Summary collapse
- 
  
    
      #extension  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute extension. 
- 
  
    
      #restriction  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute restriction. 
Attributes inherited from Info
Instance Method Summary collapse
- #base ⇒ Object
- #check_lexical_format(value) ⇒ Object
- 
  
    
      #initialize  ⇒ SimpleContent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SimpleContent. 
- #parse_element(element) ⇒ Object
- #targetnamespace ⇒ Object
Methods inherited from Info
#inspect, #parse_attr, #parse_epilogue
Constructor Details
#initialize ⇒ SimpleContent
Returns a new instance of SimpleContent.
| 25 26 27 28 29 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 25 def initialize super @restriction = nil @extension = nil end | 
Instance Attribute Details
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
| 19 20 21 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 19 def extension @extension end | 
#restriction ⇒ Object (readonly)
Returns the value of attribute restriction.
| 18 19 20 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 18 def restriction @restriction end | 
Instance Method Details
#base ⇒ Object
| 31 32 33 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 31 def base content.base end | 
#check_lexical_format(value) ⇒ Object
| 21 22 23 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 21 def check_lexical_format(value) check(value) end | 
#parse_element(element) ⇒ Object
| 39 40 41 42 43 44 45 46 47 48 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 39 def parse_element(element) case element when RestrictionName @restriction = SimpleRestriction.new @restriction when ExtensionName @extension = SimpleExtension.new @extension end end | 
#targetnamespace ⇒ Object
| 35 36 37 | # File 'lib/wsdl/xmlSchema/simpleContent.rb', line 35 def targetnamespace parent.targetnamespace end |