A B F G I J L M T U

A

Api - Class in mobi.mtld.da
Used to load the recognition tree and perform lookups of all properties, or get individual properties.
Api() - Constructor for class mobi.mtld.da.Api
 

B

BAD_DATA - Static variable in exception mobi.mtld.da.exception.JsonException
The data stored in the JSON cannot be used to build a valid Device Atlas data tree.

F

FILE_NOT_FOUND_ERROR - Static variable in exception mobi.mtld.da.exception.JsonException
The path to the JSON file that was given cannot be resolved.

G

getApiRevision() - Static method in class mobi.mtld.da.Api
Returns the revision number of this API
getCause() - Method in exception mobi.mtld.da.exception.IncorrectPropertyTypeException
 
getCause() - Method in exception mobi.mtld.da.exception.InvalidPropertyException
 
getCause() - Method in exception mobi.mtld.da.exception.JsonException
Retrieves the throwable, which determines the nature/cause of the exception.
getCause() - Method in exception mobi.mtld.da.exception.UnknownPropertyException
 
getCode() - Method in exception mobi.mtld.da.exception.JsonException
Retrieves the exception code, which determines the nature/cause of the exception.
getProperties(HashMap, String) - Static method in class mobi.mtld.da.Api
Returns a HashMap of known properties (as strings) for the user agent
getPropertiesAsTyped(HashMap, String) - Static method in class mobi.mtld.da.Api
Returns a HashMap of known properties (as typed) for the user agent
getProperty(HashMap, String, String) - Static method in class mobi.mtld.da.Api
Returns a value for the named property for this user agent
getPropertyAsBoolean(HashMap, String, String) - Static method in class mobi.mtld.da.Api
Strongly typed property accessor.
getPropertyAsDate(HashMap, String, String) - Static method in class mobi.mtld.da.Api
Strongly typed property accessor.
getPropertyAsInteger(HashMap, String, String) - Static method in class mobi.mtld.da.Api
Strongly typed property accessor.
getPropertyAsString(HashMap, String, String) - Static method in class mobi.mtld.da.Api
Strongly typed property accessor.
getTreeFromFile(String) - Static method in class mobi.mtld.da.Api
Returns a tree from a JSON file, If it has been previously loaded then the version from the static cache will be returned.
getTreeFromFile(String, boolean) - Static method in class mobi.mtld.da.Api
Returns a tree from a JSON file.
getTreeFromFile(String, boolean, boolean) - Static method in class mobi.mtld.da.Api
Returns a tree from a JSON file.
getTreeFromString(String) - Static method in class mobi.mtld.da.Api
Returns a loaded JSON tree from a string of JSON data.
getTreeFromString(String, boolean) - Static method in class mobi.mtld.da.Api
Returns a loaded JSON tree from a string of JSON data.
getTreeGeneration(HashMap) - Static method in class mobi.mtld.da.Api
Get the generation date for this tree.
getTreeGenerationAsTimestamp(HashMap) - Static method in class mobi.mtld.da.Api
Get the generation date for this tree as a UNIX timestamp.
getTreeRevision(HashMap) - Static method in class mobi.mtld.da.Api
Returns the revision number of the tree

I

IncorrectPropertyTypeException - Exception in mobi.mtld.da.exception
The InvalidPropertyException is thrown by the Api class when there is an attemp to fetch a property by type and the property is stored under a different type in the tree.
IncorrectPropertyTypeException(String) - Constructor for exception mobi.mtld.da.exception.IncorrectPropertyTypeException
Constructs a UnknownPropertyException with a message.
IncorrectPropertyTypeException(Throwable) - Constructor for exception mobi.mtld.da.exception.IncorrectPropertyTypeException
 
InvalidPropertyException - Exception in mobi.mtld.da.exception
The InvalidPropertyException is thrown by the Api class when there is an attemp to fetch a property that is unknown for the supplied user agent.
InvalidPropertyException(String) - Constructor for exception mobi.mtld.da.exception.InvalidPropertyException
Constructs a UnknownPropertyException with a message.
InvalidPropertyException(Throwable) - Constructor for exception mobi.mtld.da.exception.InvalidPropertyException
 

J

JSON_VERSION - Static variable in exception mobi.mtld.da.exception.JsonException
The JSON data you are using is to old for this API.
JsonException - Exception in mobi.mtld.da.exception
The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.
JsonException(int, String) - Constructor for exception mobi.mtld.da.exception.JsonException
Constructs a JsonException instance with a code and human-readable message.

L

listProperties(HashMap) - Static method in class mobi.mtld.da.Api
Returns a HashMap of known property names available for the user agents in this file, with their data type names

M

main(String[]) - Static method in class mobi.mtld.da.Test
Provides a command line argument to recognise a user agent multiple times.
mobi.mtld.da - package mobi.mtld.da
 
mobi.mtld.da.exception - package mobi.mtld.da.exception
 

T

Test - Class in mobi.mtld.da
Provides some simple test harnesses for the DA API
Test() - Constructor for class mobi.mtld.da.Test
 

U

UnknownPropertyException - Exception in mobi.mtld.da.exception
The UnknownPropertyException is thrown by the Api class when there is an attemp to fetch a property unknown to the tree.
UnknownPropertyException(String) - Constructor for exception mobi.mtld.da.exception.UnknownPropertyException
Constructs a UnknownPropertyException with a message.
UnknownPropertyException(Throwable) - Constructor for exception mobi.mtld.da.exception.UnknownPropertyException
 

A B F G I J L M T U

Copyright © 2011 by mTLD Top Level Domain Limited. All rights reserved. Portions copyright © 2008 by Argo Interactive Limited. Portions copyright © 2008 by Nokia Inc. Portions copyright © 2008 by Telecom Italia Mobile S.p.A. Portions copyright © 2008 by Volantis Systems Limited. Portions copyright © 2002-2008 by Andreas Staeding. Portions copyright © 2008 by Zandan.