Package mobi :: Package mtld :: Package da :: Module properties :: Class Properties
[hide private]
[frames] | no frames]

Class Properties

object --+    
         |    
      dict --+
             |
            Properties

Contains a hash of names to Property objects. An instance of this class is returned by DeviceApi.properties.

Instance Methods [hide private]
 
contains(self, property_name, value_to_check)
Checks whether the properties set has the given pair of property and value.
D[k] if k in D, else d
get(self, property_name)
Gets the value of the given property identified by its name.

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

contains(self, property_name, value_to_check)

 

Checks whether the properties set has the given pair of property and value.

Parameters:
  • property_name - is a String with the property name.
  • value_to_check - is a Value to check. It returs a bool value.

get(self, property_name)

 

Gets the value of the given property identified by its name.

Parameters:
  • property_name - is a String with the property_name. It returns Property value or None if the property does not exist.
Returns: D[k] if k in D, else d
Overrides: dict.get