예제 #1
0
 def __str__(self):
     sb = StringBuilder()
     if (self.key != None and self.key != ""):
         sb.Append("\tkey: " + self.key + "\n")
     if (self.value != None and self.value != ""):
         sb.Append("\tvalue: " + self.value + "\n")
     return str(sb)
예제 #2
0
 def __str__(self):
     sb = StringBuilder()
     if (self.href != None):
         sb.Append("\thref: " + self.href + "\n")
     if (self.writtenCount != None):
         sb.Append("\twrittenCount: " + str(self.writtenCount) + "\n")
     return str(sb)
예제 #3
0
 def __str__(self):
     sb = StringBuilder()
     if (self.v != None and self.v != 0):
         sb.Append("\tv: " + str(self.v) + "\n")
     if (self.ts != None and self.ts != 0):
         sb.Append("\tts: " + str(self.ts) + "\n")
     return str(sb)
예제 #4
0
 def __str__(self):
     sb = StringBuilder()
     if (self.name != None and self.name != ""):
         sb.Append("\tname: " + self.name + "\n")
     if (self.unit != None and self.unit != ""):
         sb.Append("\tunit: " + self.unit + "\n")
     if (self.dataType != None and self.dataType != ""):
         sb.Append("\tdataType: " + self.dataType + "\n")
     if (self.href != None and self.href != ""):
         sb.Append("\thref: " + self.href + "\n")
     if (self.path != None and self.path != ""):
         sb.Append("\tpath: " + self.path + "\n")
     return str(sb)
예제 #5
0
 def __str__(self):
     sb = StringBuilder()
     if (self.name != None and self.name != ""):
         sb.Append("\tname: " + self.name + "\n")
     if (self.unit != None and self.unit != ""):
         sb.Append("\tunit: " + self.unit + "\n")
     if (self.dataType != None and self.dataType != ""):
         sb.Append("\tdataType: " + self.dataType + "\n")
     if (self.href != None and self.href != ""):
         sb.Append("\thref: " + self.href + "\n")
     if (self.path != None and self.path != ""):
         sb.Append("\tpath: " + self.path + "\n")
     if (self.valueslist != None and len(self.valueslist) > 0):
         sb.Append("values: \n")
         for da in self.valueslist:
             sb.Append(str(da))
             sb.Append("\n")
     return str(sb)
예제 #6
0
 def __str__(self):
     sb = StringBuilder()
     if (self.totalWritten != None):
         sb.Append("totalWritten: ")
         sb.Append(str(self.totalWritten))
         sb.Append("\n")
     if (self.resultlist != None and len(self.resultlist) > 0):
         sb.Append("writeResults: \n")
         for da in self.resultlist:
             sb.Append(str(da))
         sb.Append("\n")
     return str(sb)
예제 #7
0
 def __str__(self):
     sb = StringBuilder()
     if (self.href != None and self.href != ""):
         sb.Append("href: ")
         sb.Append(self.href)
         sb.Append("\n")
     if (self.datanodeslist != None and len(self.datanodeslist) > 0):
         sb.Append("datanodeslist: \n")
         for da in self.datanodeslist:
             sb.Append(str(da))
             sb.Append("\n")
     return str(sb)
예제 #8
0
 def __str__(self):
     sb = StringBuilder()
     if (self.totalDevices != None):
         sb.Append("totalDevices: " + str(self.totalDevices) + "\n")
     if (self.maxNumberOfDevices != None):
         if (self.maxNumberOfDevices > 0):
             sb.Append("maxNumberOfDevices: " +
                       str(self.maxNumberOfDevices) + "\n")
         else:
             sb.Append("maxNumberOfDevices: " + "Unlimit" + "\n")
     if (self.maxDataNodePerDevice != None):
         if (self.maxDataNodePerDevice > 0):
             sb.Append("maxDataNodePerDevice: " +
                       str(self.maxDataNodePerDevice) + "\n")
         else:
             sb.Append("maxDataNodePerDevice: " + "Unlimit" + "\n")
     if (self.usedStorageSize != None):
         sb.Append("usedStorageSize: " + str(self.usedStorageSize) + "\n")
     if (self.maxStorageSize != None):
         if (self.maxStorageSize > 0):
             sb.Append("maxStorageSize: " + str(self.maxStorageSize) + "\n")
         else:
             sb.Append("maxStorageSize: " + "Unlimit" + "\n")
     return str(sb)
예제 #9
0
 def __str__(self):
     sb = StringBuilder()
     if (self.totalRequestToday != None):
         sb.Append("totalRequestToday: " + str(self.totalRequestToday) +
                   "\n")
     if (self.maxReadRequestPerDay != None):
         if (self.maxReadRequestPerDay > 0):
             sb.Append("maxReadRequestPerDay: " +
                       str(self.maxReadRequestPerDay) + "\n")
         else:
             sb.Append("maxReadRequestPerDay: " + "Unlimit" + "\n")
     if (self.deviceId != None):
         sb.Append("deviceId: " + self.deviceId + "\n")
     if (self.numberOfDataNodes != None):
         sb.Append("numberOfDataNodes: " + str(self.numberOfDataNodes) +
                   "\n")
     if (self.storageSize != None):
         sb.Append("storageSize: " + str(self.storageSize) + "\n")
     return str(sb)
예제 #10
0
 def __str__(self):
     sb = StringBuilder()
     if (self.description != None and self.description != ""):
         sb.Append("ERROR:\n")
         sb.Append("\tdescription: ")
         sb.Append(self.description)
         sb.Append("\n")
     if (self.code != None and self.code != 0):
         sb.Append("\tcode: ")
         sb.Append(str(self.code))
         sb.Append("\n")
     if (self.moreInfo != None and self.moreInfo != ""):
         sb.Append("\tmoreInfo: ")
         sb.Append(self.moreInfo)
         sb.Append("\n")
     if (self.apiver != None and self.apiver != 0):
         sb.Append("\tapiver: ")
         sb.Append(str(self.apiver))
         sb.Append("\n")
     return str(sb)
예제 #11
0
 def __str__(self):
     sb = StringBuilder()
     if (self.fullSize != None and self.fullSize != 0):
         sb.Append("fullSize: ")
         sb.Append(str(self.fullSize))
         sb.Append("\n")
     if (self.limit != None and self.limit != 0):
         sb.Append("limit: ")
         sb.Append(str(self.limit))
         sb.Append("\n")
     if (self.offset != None and self.offset != 0):
         sb.Append("offset: ")
         sb.Append(str(self.offset))
         sb.Append("\n")
     if (self.datanodelist != None and len(self.datanodelist) > 0):
         sb.Append("datanodelist: \n")
         for dn in self.datanodelist:
             sb.Append(str(dn))
             sb.Append("\n")
     sb.Append("\n")
     return str(sb)
예제 #12
0
 def __str__(self):
     sb = StringBuilder()
     if (self.name != None and self.name != ""):
         sb.Append("name: ")
         sb.Append(self.name)
         sb.Append("\n")
     if (self.manufacturer != None and self.manufacturer != ""):
         sb.Append("manufacturer: ")
         sb.Append(self.manufacturer)
         sb.Append("\n")
     if (self.type != None and self.type != ""):
         sb.Append("type: ")
         sb.Append(self.type)
         sb.Append("\n")
     if (self.description != None and self.description != ""):
         sb.Append("description: ")
         sb.Append(self.description)
         sb.Append("\n")
     if (self.createdAt != None and self.createdAt != ""):
         sb.Append("createdAt: ")
         sb.Append(self.createdAt)
         sb.Append("\n")
     if (self.deviceId != None and self.deviceId != ""):
         sb.Append("deviceId: ")
         sb.Append(self.deviceId)
         sb.Append("\n")
     if (self.href != None and self.href != ""):
         sb.Append("href: ")
         sb.Append(self.href)
         sb.Append("\n")
     if (self.attributeslist != None and len(self.attributeslist) > 0):
         sb.Append("attributes: \n")
         for da in self.attributeslist:
             sb.Append(str(da))
         sb.Append("\n")
     return str(sb)