Ejemplo n.º 1
0
    def __init__(self, xsdElement, parent):

        """
        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.        
        """
        
        self.patterns     = []

        self.length       = None

        self.listItemType = None

        self.minInclusive = None

        self.maxInclusive = None

        self.minExclusive = None

        self.maxExclusive = None

        XsdType.__init__(self, xsdElement, parent)

        self.getSchema().simpleTypes[self.name] = self
Ejemplo n.º 2
0
 def __init__(self, xsdElement, parent):
     """
     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.
     """
     self.sequencesOrChoices = []
     
     XsdType.__init__(self, xsdElement, parent)
     
     self.getSchema().complexTypes[self.name] = self
Ejemplo n.º 3
0
    def __init__(self, xsdElement, parent):
        """
        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.
        """
        self.sequencesOrChoices = []

        XsdType.__init__(self, xsdElement, parent)

        self.getSchema().complexTypes[self.name] = self