Lines Matching refs:value
119 def __init__(self,typeName, value): argument
121 self.value = value
125 return "<uno.Enum %s (%r)>" % (self.typeName, self.value)
130 return (self.typeName == that.typeName) and (self.value == that.value)
156 def __new__(cls, value): argument
157 if isinstance(value, (str, unicode)) and value == "true":
159 if isinstance(value, (str, unicode)) and value == "false":
161 if value:
168 def __init__(self,value): argument
169 assert isinstance(value, unicode)
170 assert len(value) == 1
171 self.value=value
174 return "<Char instance %s>" % (self.value, )
180 return self.value == that[0]
182 return self.value == that.value
186 def __init__(self, value): argument
187 if isinstance(value, (bytes, bytearray)):
188 self.value = value
189 elif isinstance(value, ByteSequence):
190 self.value = value.value
195 return "<ByteSequence instance '%s'>" % (self.value, )
199 return self.value == that.value
201 return self.value == that
205 return len(self.value)
208 return self.value[index]
211 return self.value.__iter__()
215 return ByteSequence( self.value + b )
217 return ByteSequence( self.value + b.value )
221 return self.value.hash()
226 def __init__(self, type, value ): argument
231 self.value = value
300 def _uno_struct__setattr__(self,name,value): argument
301 return setattr(self.__dict__["value"],name,value)