Class: WSDL::XMLSchema::Import
  
  
  
  
  
    - Inherits:
- 
      Info
      
        
        show all
      
    
    - Defined in:
- lib/wsdl/xmlSchema/import.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
  
    
  
  
    #initialize  ⇒ Import 
  
  
  
  
    
Returns a new instance of Import.
   
 
  
  
    | 
22
23
24
25
26 | # File 'lib/wsdl/xmlSchema/import.rb', line 22
def initialize
  super
  @namespace = nil
  @handler = ImportHandler.new
end
 | 
 
  
 
  
    Instance Attribute Details
    
      
      
      
  
  
    #namespace  ⇒ Object  
  
  
  
  
    
Returns the value of attribute namespace.
   
 
  
  
    | 
20
21
22 | # File 'lib/wsdl/xmlSchema/import.rb', line 20
def namespace
  @namespace
end
 | 
 
    
   
  
    Instance Method Details
    
      
  
  
    | 
32
33
34 | # File 'lib/wsdl/xmlSchema/import.rb', line 32
def content
  @handler.content
end
 | 
 
    
      
  
  
    #parse_attr(attr, value)  ⇒ Object 
  
  
  
  
    | 
40
41
42
43
44
45
46
47
48
49 | # File 'lib/wsdl/xmlSchema/import.rb', line 40
def parse_attr(attr, value)
  case attr
  when NamespaceAttrName
    @namespace = value.source
  when SchemaLocationAttrName
    @handler.parse_schemalocation(value.source, root, parent)
  else
    nil
  end
end
 | 
 
    
      
  
  
    #parse_element(element)  ⇒ Object 
  
  
  
  
    | 
36
37
38 | # File 'lib/wsdl/xmlSchema/import.rb', line 36
def parse_element(element)
  nil
end
 | 
 
    
      
  
  
    #schemalocation  ⇒ Object 
  
  
  
  
    | 
28
29
30 | # File 'lib/wsdl/xmlSchema/import.rb', line 28
def schemalocation
  @handler.schemalocation
end
 |