Package pyxsd :: Package elementRepresentatives :: Module complexType :: Class ComplexType
[hide private]
[frames] | no frames]

Class ComplexType

source code

                                 object --+        
                                          |        
elementRepresentative.ElementRepresentative --+    
                                              |    
                                xsdType.XsdType --+
                                                  |
                                                 ComplexType
Known Subclasses:
schema.Schema

The class for the complexType tag. Subclass of XsdType.

Instance Methods [hide private]
  __init__(self, xsdElement, parent)
Keeps a list of sequences and choices that are children of it.
  getElements(self)
Returns a list of elements.
  gatherFacets(self)
returns a blank dictionary.

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

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

    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.
  getName(self)
Mostly normal getName(), except it includes a means to make a type name if the type is the child of an element or some other tag.

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 

Keeps a list of sequences and choices that are children of it.
Stores itself in the schema dictionary of complexTypes.
Uses the XsdType `__init__`.
 See *ElementRepresentative* for more documentation.

Overrides: xsdType.XsdType.__init__

getElements(self)

source code 

Returns a list of elements. Uses lazy evaluation. Goes through the sequencesOrChoices list, goes through each ones elements, adds its container information, then adds the element to a list which it returns.

No parameters.

Overrides: xsdType.XsdType.getElements

gatherFacets(self)

source code 
returns a blank dictionary. Needed for SimpleType, so the function can be called for any type without error.