Esempio n. 1
0
 def __init__(self, xsdElement, parent):
     """
     See *ElementRepresentative* for documentation.
     """
     ElementRepresentative.__init__(self, xsdElement, parent)
     
     self.addSuperClassName(self.tagAttributes['base'])
Esempio n. 2
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.addSuperClassName(self.tagAttributes['base'])
Esempio n. 3
0
    def __init__(self, xsdElement, parent):
        """
        Adds itself to the attribute dictionary in its containing
        type. See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.getContainingType().attributes[self.name] = self
Esempio n. 4
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.value                            = self.xsdElement.get('value')
        self.getContainingType().maxInclusive = self.value
Esempio n. 5
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.value = self.xsdElement.get('value')
        self.getContainingType().maxInclusive = self.value
Esempio n. 6
0
    def __init__(self, xsdElement, parent):
        """
        Adds itself to the element list in its parent.
        See *ElementRepresentative* for documentation.
        """

        ElementRepresentative.__init__(self, xsdElement, parent)

        parent.elements.append(self)
Esempio n. 7
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation. Adds its documentation to the __doc__ field for the ER.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.contType         = self.getContainingType()

        self.contType.__doc__ = xsdElement.text.strip()
Esempio n. 8
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.value = self.xsdElement.get('value')

        self.getContainingType().enumerations.append(self.value)
Esempio n. 9
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.value = self.xsdElement.get('value')

        self.getContainingType().enumerations.append(self.value)
Esempio n. 10
0
    def __init__(self, xsdElement, parent):
        """
        Adds itself to the element list in its parent.
        See *ElementRepresentative* for documentation.
        """

        ElementRepresentative.__init__(self, xsdElement, parent)

        parent.elements.append(self)
Esempio n. 11
0
    def __init__(self, xsdElement, parent):
        """
        See *ElementRepresentative* for documentation.
        """
        ElementRepresentative.__init__(self, xsdElement, parent)

        self.itemType = self.xsdElement.get('itemType')

        self.getContainingType().listItemType = self.itemType

        self.type = 'xs:list'  #the 'xs' is used so that it can be properly identified as a primitive data type later on
Esempio n. 12
0
    def __init__(self, xsdElement, parent):
        """
        Adds itself to the sequencesOrChoices list in its containing complexType.
        Makes a blank list for element children.
        Uses the ER '__init__`.
        See *ElementRepresentative* for more documentation.
        """
        self. elements = []

        ElementRepresentative.__init__(self, xsdElement, parent)

        self.getContainingType().sequencesOrChoices.append(self)
Esempio n. 13
0
    def __init__(self, xsdElement, parent):
        """
        Adds itself to the sequencesOrChoices list in its containing complexType.
        Makes a blank list for element children.
        Uses the ER '__init__`.
        See *ElementRepresentative* for more documentation.
        """
        self.elements = []

        ElementRepresentative.__init__(self, xsdElement, parent)

        self.getContainingType().sequencesOrChoices.append(self)
Esempio n. 14
0
    def __init__(self, xsdElement, parent):
        """
        The `__init__` for this class' subclasses.
        Creates a blank list for enumerations.
        Creates a blank dictionary for attributes.
        See *ElementRepresentative* for documentation.
        """
        self.enumerations = []

        self.attributes  = {}
        
        ElementRepresentative.__init__(self, xsdElement, parent)
Esempio n. 15
0
    def __init__(self, xsdElement, parent):
        """
        The `__init__` for this class' subclasses.
        Creates a blank list for enumerations.
        Creates a blank dictionary for attributes.
        See *ElementRepresentative* for documentation.
        """
        self.enumerations = []

        self.attributes = {}

        ElementRepresentative.__init__(self, xsdElement, parent)
Esempio n. 16
0
    def __init__(self, xsdElement, parent):
        """
        Creates a dictionary for attributes.
        Adds itself to the attribute group dictionary in schema.        
        See *ElementRepresentative* for more documentation.
        """
        self.attributes = {}

        ElementRepresentative.__init__(self, xsdElement, parent)

        attrGroupContainer = self.parent.getContainingType()
        attrGroupContainer.attributeGroups[self.name] = self
        self.getSchema().attributeGroups[self.name] = self
Esempio n. 17
0
    def __init__(self, xsdElement, parent):
        """
        Creates a dictionary for attributes.
        Adds itself to the attribute group dictionary in schema.        
        See *ElementRepresentative* for more documentation.
        """
        self.attributes = {}

        ElementRepresentative.__init__(self, xsdElement, parent)

        attrGroupContainer = self.parent.getContainingType()
        attrGroupContainer.attributeGroups[self.name] = self
        self.getSchema().attributeGroups[self.name] = self
Esempio n. 18
0
 def __init__(self, xsdElement, parent):
     """
     See *ElementRepresentative* for documentation.
     """
     ElementRepresentative.__init__(self, xsdElement, parent)
Esempio n. 19
0
 def __init__(self, xsdElement, parent):
     """
     See *ElementRepresentative* for documentation.
     """
     ElementRepresentative.__init__(self, xsdElement, parent)