Package pyxsd :: Package elementRepresentatives :: Module simpleType :: Class SimpleType
[hide private]
[frames] | no frames]

Class SimpleType

source code

                                 object --+        
                                          |        
elementRepresentative.ElementRepresentative --+    
                                              |    
                                xsdType.XsdType --+
                                                  |
                                                 SimpleType

The class for the simpleType tag. Subclass of XsdType.

Instance Methods [hide private]
  __init__(self, xsdElement, parent)
Creates blank variables for a series of facets, which are variables that specify restrictions on attributes.

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.
  getElements(self)
Returns a blank list.
  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 
Creates blank variables for a series of facets, which are variables that specify restrictions on attributes. Adds itself to the simpleType dictionary in the schema class instance. Uses the XsdType __init__. See ElementRepresentative for documentation.
Overrides: xsdType.XsdType.__init__