Package pyxsd :: Package elementRepresentatives :: Module schema :: Class Schema
[hide private]
[frames] | no frames]

Class Schema

source code

                                 object --+            
                                          |            
elementRepresentative.ElementRepresentative --+        
                                              |        
                                xsdType.XsdType --+    
                                                  |    
                            complexType.ComplexType --+
                                                      |
                                                     Schema

The class for the schema tag. Subclass of ComplexType, becuase it is so similar to it.

Instance Methods [hide private]
  __init__(self, xsdElement, parent)
Stores all the attributeGroups, complexTypes, and simpleTypes in the document in dictionaries.
  getName(self)
returns 'schema'
  getElements(self)
Returns a list of elements.
  getSchema(self)
returns the schema ER obj.

Inherited from elementRepresentative.ElementRepresentative: __str__, addSuperClassName, checkTopLevelType, describe, findLayerNum, processChildren

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

    Inherited from complexType.ComplexType
  gatherFacets(self)
returns a blank dictionary.
    Inherited from xsdType.XsdType
  clsFor(self, pyXSD)
Produces a class for a schema type.
  containsSchemaBase(self, bases)
Returns true if SchemaBase is in the bases list, false if it is not.
  getBaseList(self, pyXSD)
Creates blank list for the base classes.
  getContainingType(self)
All types are containing types, so this works for all of the XSD types.
  getContainingTypeName(self)
Since all types are containing types, this method returns its own name.

Class Methods [hide private]

Inherited from elementRepresentative.ElementRepresentative: classNameFor, factory, getFromName, register, typeFromName


Static Methods [hide private]

Inherited from elementRepresentative.ElementRepresentative: tryConvert


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, xsdElement, parent)
(Constructor)

source code 
Stores all the attributeGroups, complexTypes, and simpleTypes in the document in dictionaries. Also has a list of top-level elements (should be only one). See ElementRepresentative for more documentation.
Overrides: complexType.ComplexType.__init__

getName(self)

source code 
returns 'schema'
Overrides: xsdType.XsdType.getName

getElements(self)

source code 

Returns a list of elements.

No parameters

Overrides: complexType.ComplexType.getElements

getSchema(self)

source code 
returns the schema ER obj. In ER, a method with the same name points down to the method by the same name in its parent.
Overrides: elementRepresentative.ElementRepresentative.getSchema