Home | Trees | Indices | Help |
---|
|
1 #!/usr/bin/env python 2 3 """ 4 @copyright: 5 Copyright (c) 2014 by mTLD Top Level Domain Limited. All rights reserved.\n 6 Portions copyright (c) 2008 by Argo Interactive Limited.\n 7 Portions copyright (c) 2008 by Nokia Inc.\n 8 Portions copyright (c) 2008 by Telecom Italia Mobile S.p.A.\n 9 Portions copyright (c) 2008 by Volantis Systems Limited.\n 10 Portions copyright (c) 2002-2008 by Andreas Staeding.\n 11 Portions copyright (c) 2008 by Zandan.\n 12 @author: dotMobi 13 """ 14 15 from mobi.mtld.da.data_type import DataType18 """ 19 Contains a property name and the expected data type of values associated with 20 this name. 21 """ 22 23 __name = '' 24 __data_type_id = 0 256627 """ 28 Create a new PropertyName with a name and the expected data type of 29 value assigned to it. 30 """ 31 if type(name) == str: 32 self.__name = name 33 else: 34 self.__name = name.decode("utf-8") 35 self.__data_type_id = data_type_id36 37 @property39 return self.__name40 41 @property43 return self.__data_type_id4446 """ 47 Get the data type name of this PropertyName object. 48 """ 49 return DataType.name(self.__data_type_id)5052 """ 53 Returns the property data type id wrapped by breaks. 54 """ 55 return "(%s)" % self.__data_type_id5658 if isinstance(o, PropertyName): 59 return (self.__name == o.__name and self.__data_type_id == o.__data_type_id) 60 return False6163 if isinstance(o, PropertyName): 64 return (self.__name != o.__name or self.__data_type_id != o.__data_type_id) 65 return True
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri May 30 11:47:02 2014 | http://epydoc.sourceforge.net |