Code Duplication    Length = 33-38 lines in 5 locations

opcua/ua/uaprotocol_auto.py 5 locations

@@ 4984-5021 (lines=38) @@
4981
    __repr__ = __str__
4982
4983
4984
class AttributeOperand(FrozenClass):
4985
    '''
4986
    :ivar NodeId:
4987
    :vartype NodeId: NodeId
4988
    :ivar Alias:
4989
    :vartype Alias: String
4990
    :ivar BrowsePath:
4991
    :vartype BrowsePath: RelativePath
4992
    :ivar AttributeId:
4993
    :vartype AttributeId: UInt32
4994
    :ivar IndexRange:
4995
    :vartype IndexRange: String
4996
    '''
4997
4998
    ua_types = [
4999
        ('NodeId', 'NodeId'),
5000
        ('Alias', 'String'),
5001
        ('BrowsePath', 'RelativePath'),
5002
        ('AttributeId', 'UInt32'),
5003
        ('IndexRange', 'String'),
5004
               ]
5005
5006
    def __init__(self):
5007
        self.NodeId = NodeId()
5008
        self.Alias = None
5009
        self.BrowsePath = RelativePath()
5010
        self.AttributeId = 0
5011
        self.IndexRange = None
5012
        self._freeze = True
5013
5014
    def __str__(self):
5015
        return 'AttributeOperand(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5016
               'Alias:' + str(self.Alias) + ', ' + \
5017
               'BrowsePath:' + str(self.BrowsePath) + ', ' + \
5018
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5019
               'IndexRange:' + str(self.IndexRange) + ')'
5020
5021
    __repr__ = __str__
5022
5023
5024
class SimpleAttributeOperand(FrozenClass):
@@ 5940-5972 (lines=33) @@
5937
    __repr__ = __str__
5938
5939
5940
class WriteValue(FrozenClass):
5941
    '''
5942
    :ivar NodeId:
5943
    :vartype NodeId: NodeId
5944
    :ivar AttributeId:
5945
    :vartype AttributeId: UInt32
5946
    :ivar IndexRange:
5947
    :vartype IndexRange: String
5948
    :ivar Value:
5949
    :vartype Value: DataValue
5950
    '''
5951
5952
    ua_types = [
5953
        ('NodeId', 'NodeId'),
5954
        ('AttributeId', 'UInt32'),
5955
        ('IndexRange', 'String'),
5956
        ('Value', 'DataValue'),
5957
               ]
5958
5959
    def __init__(self):
5960
        self.NodeId = NodeId()
5961
        self.AttributeId = 0
5962
        self.IndexRange = None
5963
        self.Value = DataValue()
5964
        self._freeze = True
5965
5966
    def __str__(self):
5967
        return 'WriteValue(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5968
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5969
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5970
               'Value:' + str(self.Value) + ')'
5971
5972
    __repr__ = __str__
5973
5974
5975
class WriteParameters(FrozenClass):
@@ 5524-5556 (lines=33) @@
5521
    __repr__ = __str__
5522
5523
5524
class HistoryReadValueId(FrozenClass):
5525
    '''
5526
    :ivar NodeId:
5527
    :vartype NodeId: NodeId
5528
    :ivar IndexRange:
5529
    :vartype IndexRange: String
5530
    :ivar DataEncoding:
5531
    :vartype DataEncoding: QualifiedName
5532
    :ivar ContinuationPoint:
5533
    :vartype ContinuationPoint: ByteString
5534
    '''
5535
5536
    ua_types = [
5537
        ('NodeId', 'NodeId'),
5538
        ('IndexRange', 'String'),
5539
        ('DataEncoding', 'QualifiedName'),
5540
        ('ContinuationPoint', 'ByteString'),
5541
               ]
5542
5543
    def __init__(self):
5544
        self.NodeId = NodeId()
5545
        self.IndexRange = None
5546
        self.DataEncoding = QualifiedName()
5547
        self.ContinuationPoint = None
5548
        self._freeze = True
5549
5550
    def __str__(self):
5551
        return 'HistoryReadValueId(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5552
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5553
               'DataEncoding:' + str(self.DataEncoding) + ', ' + \
5554
               'ContinuationPoint:' + str(self.ContinuationPoint) + ')'
5555
5556
    __repr__ = __str__
5557
5558
5559
class HistoryReadResult(FrozenClass):
@@ 5394-5426 (lines=33) @@
5391
    __repr__ = __str__
5392
5393
5394
class ReadValueId(FrozenClass):
5395
    '''
5396
    :ivar NodeId:
5397
    :vartype NodeId: NodeId
5398
    :ivar AttributeId:
5399
    :vartype AttributeId: UInt32
5400
    :ivar IndexRange:
5401
    :vartype IndexRange: String
5402
    :ivar DataEncoding:
5403
    :vartype DataEncoding: QualifiedName
5404
    '''
5405
5406
    ua_types = [
5407
        ('NodeId', 'NodeId'),
5408
        ('AttributeId', 'UInt32'),
5409
        ('IndexRange', 'String'),
5410
        ('DataEncoding', 'QualifiedName'),
5411
               ]
5412
5413
    def __init__(self):
5414
        self.NodeId = NodeId()
5415
        self.AttributeId = 0
5416
        self.IndexRange = None
5417
        self.DataEncoding = QualifiedName()
5418
        self._freeze = True
5419
5420
    def __str__(self):
5421
        return 'ReadValueId(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5422
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5423
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5424
               'DataEncoding:' + str(self.DataEncoding) + ')'
5425
5426
    __repr__ = __str__
5427
5428
5429
class ReadParameters(FrozenClass):
@@ 5024-5056 (lines=33) @@
5021
    __repr__ = __str__
5022
5023
5024
class SimpleAttributeOperand(FrozenClass):
5025
    '''
5026
    :ivar TypeDefinitionId:
5027
    :vartype TypeDefinitionId: NodeId
5028
    :ivar BrowsePath:
5029
    :vartype BrowsePath: QualifiedName
5030
    :ivar AttributeId:
5031
    :vartype AttributeId: UInt32
5032
    :ivar IndexRange:
5033
    :vartype IndexRange: String
5034
    '''
5035
5036
    ua_types = [
5037
        ('TypeDefinitionId', 'NodeId'),
5038
        ('BrowsePath', 'ListOfQualifiedName'),
5039
        ('AttributeId', 'UInt32'),
5040
        ('IndexRange', 'String'),
5041
               ]
5042
5043
    def __init__(self):
5044
        self.TypeDefinitionId = NodeId()
5045
        self.BrowsePath = []
5046
        self.AttributeId = 0
5047
        self.IndexRange = None
5048
        self._freeze = True
5049
5050
    def __str__(self):
5051
        return 'SimpleAttributeOperand(' + 'TypeDefinitionId:' + str(self.TypeDefinitionId) + ', ' + \
5052
               'BrowsePath:' + str(self.BrowsePath) + ', ' + \
5053
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5054
               'IndexRange:' + str(self.IndexRange) + ')'
5055
5056
    __repr__ = __str__
5057
5058
5059
class ContentFilterElementResult(FrozenClass):