Lines Matching refs:self

119     def __init__(self,typeName, value):  argument
120 self.typeName = typeName
121 self.value = value
122 pyuno.checkEnum( self )
124 def __repr__(self): argument
125 return "<uno.Enum %s (%r)>" % (self.typeName, self.value)
127 def __eq__(self, that): argument
130 return (self.typeName == that.typeName) and (self.value == that.value)
136 def __init__(self, typeName, typeClass): argument
137 self.typeName = typeName
138 self.typeClass = typeClass
139 pyuno.checkType(self)
140 def __repr__(self): argument
141 return "<Type instance %s (%r)>" % (self.typeName, self.typeClass)
143 def __eq__(self, that): argument
146 return self.typeClass == that.typeClass and self.typeName == that.typeName
148 def __hash__(self): argument
149 return self.typeName.__hash__()
168 def __init__(self,value): argument
171 self.value=value
173 def __repr__(self): argument
174 return "<Char instance %s>" % (self.value, )
176 def __eq__(self, that): argument
180 return self.value == that[0]
182 return self.value == that.value
186 def __init__(self, value): argument
188 self.value = value
190 self.value = value.value
194 def __repr__(self): argument
195 return "<ByteSequence instance '%s'>" % (self.value, )
197 def __eq__(self, that): argument
199 return self.value == that.value
201 return self.value == that
204 def __len__(self): argument
205 return len(self.value)
207 def __getitem__(self, index): argument
208 return self.value[index]
210 def __iter__( self ): argument
211 return self.value.__iter__()
213 def __add__( self , b ): argument
215 return ByteSequence( self.value + b )
217 return ByteSequence( self.value + b.value )
220 def __hash__( self ): argument
221 return self.value.hash()
226 def __init__(self, type, value ): argument
228 self.type = type
230 self.type = getTypeByName( type )
231 self.value = value
289 def _uno_struct__init__(self,*args): argument
290 if len(args) == 1 and hasattr(args[0], "__class__") and args[0].__class__ == self.__class__ :
291 self.__dict__["value"] = args[0]
293 self.__dict__["value"] = pyuno._createUnoStructHelper(self.__class__.__pyunostruct__,args)
296 def _uno_struct__getattr__(self,name): argument
297 return getattr(self.__dict__["value"],name)
300 def _uno_struct__setattr__(self,name,value): argument
301 return setattr(self.__dict__["value"],name,value)
304 def _uno_struct__repr__(self): argument
305 return repr(self.__dict__["value"])
307 def _uno_struct__str__(self): argument
308 return str(self.__dict__["value"])
311 def _uno_struct__eq__(self,cmp): argument
313 return self.__dict__["value"] == cmp.__dict__["value"]
316 def _uno_struct__dir__(self): argument
317 return dir(self.__dict__["value"]) + list(self.__dict__.keys()) + \
318 list(self.__class__.__dict__.keys())