Code Duplication    Length = 28-28 lines in 3 locations

opcua/ua/uaprotocol_auto.py 3 locations

@@ 6260-6287 (lines=28) @@
6257
6258
6259
class HistoryUpdateResult(FrozenClass):
6260
    '''
6261
    :ivar StatusCode:
6262
    :vartype StatusCode: StatusCode
6263
    :ivar OperationResults:
6264
    :vartype OperationResults: StatusCode
6265
    :ivar DiagnosticInfos:
6266
    :vartype DiagnosticInfos: DiagnosticInfo
6267
    '''
6268
6269
    ua_types = [
6270
        ('StatusCode', 'StatusCode'),
6271
        ('OperationResults', 'ListOfStatusCode'),
6272
        ('DiagnosticInfos', 'ListOfDiagnosticInfo'),
6273
               ]
6274
6275
    def __init__(self):
6276
        self.StatusCode = StatusCode()
6277
        self.OperationResults = []
6278
        self.DiagnosticInfos = []
6279
        self._freeze = True
6280
6281
    def __str__(self):
6282
        return 'HistoryUpdateResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
6283
               'OperationResults:' + str(self.OperationResults) + ', ' + \
6284
               'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')'
6285
6286
    __repr__ = __str__
6287
6288
6289
class HistoryUpdateParameters(FrozenClass):
6290
    '''
@@ 5114-5141 (lines=28) @@
5111
5112
5113
class ParsingResult(FrozenClass):
5114
    '''
5115
    :ivar StatusCode:
5116
    :vartype StatusCode: StatusCode
5117
    :ivar DataStatusCodes:
5118
    :vartype DataStatusCodes: StatusCode
5119
    :ivar DataDiagnosticInfos:
5120
    :vartype DataDiagnosticInfos: DiagnosticInfo
5121
    '''
5122
5123
    ua_types = [
5124
        ('StatusCode', 'StatusCode'),
5125
        ('DataStatusCodes', 'ListOfStatusCode'),
5126
        ('DataDiagnosticInfos', 'ListOfDiagnosticInfo'),
5127
               ]
5128
5129
    def __init__(self):
5130
        self.StatusCode = StatusCode()
5131
        self.DataStatusCodes = []
5132
        self.DataDiagnosticInfos = []
5133
        self._freeze = True
5134
5135
    def __str__(self):
5136
        return 'ParsingResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
5137
               'DataStatusCodes:' + str(self.DataStatusCodes) + ', ' + \
5138
               'DataDiagnosticInfos:' + str(self.DataDiagnosticInfos) + ')'
5139
5140
    __repr__ = __str__
5141
5142
5143
class QueryFirstParameters(FrozenClass):
5144
    '''
@@ 5059-5086 (lines=28) @@
5056
5057
5058
class ContentFilterElementResult(FrozenClass):
5059
    '''
5060
    :ivar StatusCode:
5061
    :vartype StatusCode: StatusCode
5062
    :ivar OperandStatusCodes:
5063
    :vartype OperandStatusCodes: StatusCode
5064
    :ivar OperandDiagnosticInfos:
5065
    :vartype OperandDiagnosticInfos: DiagnosticInfo
5066
    '''
5067
5068
    ua_types = [
5069
        ('StatusCode', 'StatusCode'),
5070
        ('OperandStatusCodes', 'ListOfStatusCode'),
5071
        ('OperandDiagnosticInfos', 'ListOfDiagnosticInfo'),
5072
               ]
5073
5074
    def __init__(self):
5075
        self.StatusCode = StatusCode()
5076
        self.OperandStatusCodes = []
5077
        self.OperandDiagnosticInfos = []
5078
        self._freeze = True
5079
5080
    def __str__(self):
5081
        return 'ContentFilterElementResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
5082
               'OperandStatusCodes:' + str(self.OperandStatusCodes) + ', ' + \
5083
               'OperandDiagnosticInfos:' + str(self.OperandDiagnosticInfos) + ')'
5084
5085
    __repr__ = __str__
5086
5087
5088
class ContentFilterResult(FrozenClass):
5089
    '''