#NEWLINE# @ property #NEWLINE# def attributes( self ) : #NEWLINE# #INDENT# '(dict) -- Dict of ModelAttribute attribute declarations keyed by attribute QName' #NEWLINE# try : #NEWLINE# #INDENT# return self . _attributes #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# self . _attributes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ( attrs , attrWildcardElts , attrGroups ) = XmlUtil . schemaAttributesGroups ( self ) #NEWLINE# self . _attributeWildcards = attrWildcardElts #NEWLINE# for attrRef in attrs : #NEWLINE# #INDENT# attrDecl = attrRef . dereference ( ) #NEWLINE# if ( attrDecl is not None ) : #NEWLINE# #INDENT# self . _attributes [ attrDecl . qname ] = attrDecl #NEWLINE# #UNINDENT# #UNINDENT# for attrGroupRef in attrGroups : #NEWLINE# #INDENT# attrGroupDecl = attrGroupRef . dereference ( ) #NEWLINE# if ( attrGroupDecl is not None ) : #NEWLINE# #INDENT# for attrRef in attrGroupDecl . attributes . values ( ) : #NEWLINE# #INDENT# attrDecl = attrRef . dereference ( ) #NEWLINE# if ( attrDecl is not None ) : #NEWLINE# #INDENT# self . _attributes [ attrDecl . qname ] = attrDecl #NEWLINE# #UNINDENT# #UNINDENT# self . _attributeWildcards . extend ( attrGroupDecl . attributeWildcards ) #NEWLINE# #UNINDENT# #UNINDENT# typeDerivedFrom = self . typeDerivedFrom #NEWLINE# for t in ( typeDerivedFrom if isinstance ( typeDerivedFrom , list ) else [ typeDerivedFrom ] ) : #NEWLINE# #INDENT# if isinstance ( t , ModelType ) : #NEWLINE# #INDENT# self . _attributes . update ( t . attributes ) #NEWLINE# self . _attributeWildcards . extend ( t . attributeWildcards ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _attributes