Esempio n. 1
0
 def encode(self):
   if self.name is None:
     return None
   else:
     impl = ErrorCondition()
     impl.setCondition(Symbol.valueOf(self.name))
     impl.setDescription(self.description)
     impl.setInfo(dat2obj(self.info))
     return impl
Esempio n. 2
0
 def encode(self):
   if self.name is None:
     return None
   else:
     impl = ErrorCondition()
     impl.setCondition(Symbol.valueOf(self.name))
     impl.setDescription(self.description)
     impl.setInfo(dat2obj(self.info))
     return impl
Esempio n. 3
0
 def __init__(self, name=None, description=None, info=None, impl=None):
   if impl is None:
     impl = ErrorCondition(Symbol.valueOf(name), description)
     if info is not None:
       impl.setInfo(info)
   self.impl = impl
Esempio n. 4
0
 def __init__(self, name=None, description=None, info=None, impl=None):
     if impl is None:
         impl = ErrorCondition(Symbol.valueOf(name), description)
         if info is not None:
             impl.setInfo(info)
     self.impl = impl