#NEWLINE# def __validate( self ) : #NEWLINE# #INDENT# if isinstance ( self . operations , list ) : #NEWLINE# #INDENT# for i in xrange ( len ( self . operations ) ) : #NEWLINE# #INDENT# operation = self . operations [ i ] #NEWLINE# if ( not isinstance ( operation , Operation ) ) : #NEWLINE# #INDENT# msg = 'invalid operation ({0} in list)' . format ( i ) #NEWLINE# msg += '; expected {0}, received {1}' . format ( Operation , operation ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'invalid operations list' #NEWLINE# msg += '; expected {0}, received {1}' . format ( list , self . operations ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# if isinstance ( self . object_types , list ) : #NEWLINE# #INDENT# for i in xrange ( len ( self . object_types ) ) : #NEWLINE# #INDENT# object_type = self . object_types [ i ] #NEWLINE# if ( not isinstance ( object_type , ObjectType ) ) : #NEWLINE# #INDENT# msg = 'invalid object type ({0} in list)' . format ( i ) #NEWLINE# msg += '; expected {0}, received {1}' . format ( ObjectType , object_type ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'invalid object types list' #NEWLINE# msg += '; expected {0}, received {1}' . format ( list , self . object_types ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# if ( self . vendor_identification is not None ) : #NEWLINE# #INDENT# if ( not isinstance ( self . vendor_identification , VendorIdentification ) ) : #NEWLINE# #INDENT# msg = 'invalid vendor identification' #NEWLINE# msg += '; expected {0}, received {1}' . format ( VendorIdentification , self . vendor_identification ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . server_information is not None ) : #NEWLINE# #INDENT# if ( not isinstance ( self . server_information , ServerInformation ) ) : #NEWLINE# #INDENT# msg = 'invalid server information' #NEWLINE# msg += '; expected {0}, received {1}' . format ( ServerInformation , self . server_information ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# if isinstance ( self . application_namespaces , list ) : #NEWLINE# #INDENT# for i in xrange ( len ( self . application_namespaces ) ) : #NEWLINE# #INDENT# application_namespace = self . application_namespaces [ i ] #NEWLINE# if ( not isinstance ( application_namespace , ApplicationNamespace ) ) : #NEWLINE# #INDENT# msg = 'invalid application namespace ({0} in list)' . format ( i ) #NEWLINE# msg += '; expected {0}, received {1}' . format ( ApplicationNamespace , application_namespace ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'invalid application namespaces list' #NEWLINE# msg += '; expected {0}, received {1}' . format ( list , self . application_namespaces ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# if isinstance ( self . extension_information , list ) : #NEWLINE# #INDENT# for i in xrange ( len ( self . extension_information ) ) : #NEWLINE# #INDENT# extension_information = self . extension_information [ i ] #NEWLINE# if ( not isinstance ( extension_information , ExtensionInformation ) ) : #NEWLINE# #INDENT# msg = 'invalid extension information ({0} in list)' . format ( i ) #NEWLINE# msg += '; expected {0}, received {1}' . format ( ExtensionInformation , extension_information ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'invalid extension information list' #NEWLINE# msg += '; expected {0}, received {1}' . format ( list , self . extension_information ) #NEWLINE# raise TypeError ( msg )