Package suds :: Package xsd :: Module doctor :: Class Import
[hide private]
[frames] | no frames]

Class Import

source code

An <xs:import/> to be applied.

Instance Methods [hide private]
 
__init__(self, ns, location=None) source code
 
setfilter(self, filter)
Set the filter.
source code
 
apply(self, root)
Apply the import (rule) to the specified schema.
source code
 
add(self, root)
Add an <xs:import/> to the specified schema root.
source code
 
exists(self, root)
Check to see if the <xs:import/> already exists in the specified schema root by matching namesapce.
source code
Class Variables [hide private]
(p,u) xsdns = ('xs', 'http://www.w3.org/2001/XMLSchema')
The XSD namespace.
Instance Variables [hide private]
TnsFilter filter
A filter used to restrict application to a particular schema.
str location
An optional schemaLocation.
str ns
An import namespace.
Method Details [hide private]

__init__(self, ns, location=None)
(Constructor)

source code 
Parameters:
  • ns (str) - An import namespace.
  • location (str) - An optional schemaLocation.

setfilter(self, filter)

source code 

Set the filter.

Parameters:

apply(self, root)

source code 

Apply the import (rule) to the specified schema. If the schema does not already contain an import for the namespace specified here, it is added.

Parameters:

add(self, root)

source code 

Add an <xs:import/> to the specified schema root.

Parameters:

exists(self, root)

source code 

Check to see if the <xs:import/> already exists in the specified schema root by matching namesapce.

Parameters: