Represents an XSD that handles special attributes that are extensions for WSDLs. @ivar aty: Array type information. @type aty: The value of wsdl:arrayType.
| 24 | |
| 25 | |
| 26 | class Attribute(SXAttribute): |
| 27 | """ |
| 28 | Represents an XSD <attribute/> that handles special |
| 29 | attributes that are extensions for WSDLs. |
| 30 | @ivar aty: Array type information. |
| 31 | @type aty: The value of wsdl:arrayType. |
| 32 | """ |
| 33 | |
| 34 | def __init__(self, schema, root, aty): |
| 35 | """ |
| 36 | @param aty: Array type information. |
| 37 | @type aty: The value of wsdl:arrayType. |
| 38 | """ |
| 39 | SXAttribute.__init__(self, schema, root) |
| 40 | if aty.endswith('[]'): |
| 41 | self.aty = aty[:-2] |
| 42 | else: |
| 43 | self.aty = aty |
| 44 | |
| 45 | def autoqualified(self): |
| 46 | aqs = SXAttribute.autoqualified(self) |
| 47 | aqs.append('aty') |
| 48 | return aqs |
| 49 | |
| 50 | def description(self): |
| 51 | d = SXAttribute.description(self) |
| 52 | d = d+('aty',) |
| 53 | return d |
| 54 | |
| 55 | # |
| 56 | # Builder function, only builds Attribute when arrayType |