Home | Trees | Indices | Help |
---|
|
Static Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Method Details |
Returns revision number of the API Arguments: tree -- previously loaded tree Returns: Integer revision number |
Returns an array of known properties (as strings) for the UA Arguments: tree -- previously generated tree userAgent -- string from devices User-Agent header Returns: Dictionary of properties |
Returns an array of known properties (as typed) for the UA Arguments: tree --- previously generated tree userAgent -- string from devices User-Agent header Returns: String property |
Returns a value for the named property of this user agent Arguments: tree -- previously generated tree userAgent -- string from devices User-Agent header property -- the name of the property to return Returns: String property |
Strongly-typed property accessor. Returns boolean property. Throws exception of property is actually a different type Arguments: tree -- previously generated tree userAgent -- string from devices User-Agent header property -- the name of the property to return Returns: Boolean property |
Strongly-typed property accessor. Returns date property. Throws exception of property is actually a different type Arguments: tree is previously generated tree userAgent is string from devices User-Agent header property is the name of the property to return Returns: String property |
Strongly-typed property accessor. Returns integer property. Throws exception of property is actually a different type Arguments: tree -- previously generated tree userAgent -- string from devices User-Agent header property -- the name of the property to return Returns: Integer property |
Strongly-typed property accessor. Returns string property. Throws exception of property is actually a different type Arguments: tree -- previously generated tree userAgent -- string from devices User-Agent header property -- the name of the property to return Returns: String property |
Returns a tree from a JSON file. Use absolute path name to be sure of success if the current working directory is not clear Some properties cannot be known before runtime and can change from user-agent to user-agent. The most common of these are the OS Version and the Browser Version. This API is able to dynamically detect these changing properties but introduces a small overhead to do so. Arguments: file -- the location of the file to read includeChangeableUserAgentProperties -- set to False to disable returning extra properties set Returns: Hash tree |
Returns a tree from a JSON string return array tree Some properties cannot be known before runtime and can change from user-agent to user-agent. The most common of these are the OS Version and the Browser Version. This API is able to dynamically detect these changing properties but introduces a small overhead to do so. To disable returning these extra properties set <i>includeChangeableUserAgentProperties</i> to <b>false</b>. Arguments: json -- a string of json data includeChangeableUserAgentProperties -- also detect changeable user-agent properties Returns: The loaded JSON Trr Throws: RunTimeError |
Get the generation date for this tree Arguments: tree -- previously loaded tree Returns: The date/time when the tree was generated |
Returns revision number of the tree Arguments: tree -- previously loaded tree Returns: Integer revision number |
Returns revision number of the tree Arguments: tree -- previously loaded tree Returns: Integer revision number |
Returns array of known property names. Returns all properties available for all user agents in this tree, with their data type names Arguments: tree -- previously generated tree Returns: Dictionary of properties |
Return the name for a property's coded id Arguments: tree -- previously generated tree |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Mar 15 17:14:04 2013 | http://epydoc.sourceforge.net |