mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
30 lines
656 B
Python
Executable file
30 lines
656 B
Python
Executable file
|
|
|
|
class AttribDesc:
|
|
|
|
def __init__(self, name, default, datatype = 'string', params = {}):
|
|
self.name = name
|
|
self.default = default
|
|
self.datatype = datatype
|
|
self.params = params
|
|
|
|
def getName(self):
|
|
return self.name
|
|
|
|
def getDefaultValue(self):
|
|
return self.default
|
|
|
|
def getDatatype(self):
|
|
return self.datatype
|
|
|
|
def getParams(self):
|
|
return self.params
|
|
|
|
def __str__(self):
|
|
return self.name
|
|
|
|
def __repr__(self):
|
|
return 'AttribDesc(%s, %s, %s, %s)' % (repr(self.name),
|
|
repr(self.default),
|
|
repr(self.datatype),
|
|
repr(self.params))
|