de.unikassel.android.sdcframework.data.independent
Class DeviceInformation

Package class diagram package DeviceInformation
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.independent.DeviceInformation
All Implemented Interfaces:
SerializableData
Direct Known Subclasses:
ConcreteDeviceInformation

public class DeviceInformation
extends Object
implements SerializableData

The device information does provide a unique generated uuid generated by the service itself and specific device data like the manufacturer, model, product and others.

See Also:
Build

Field Summary
private  String device
          The name of the industrial design.
static String DEVICE_INFO_FILE
          The filename for the serialized device info
private  String fingerprint
          A string that uniquely identifies the build.
private  String id
          Either a change list number, or a label like "M4-rc20".
private  String manufacturer
          The manufacturer of the hardware.
private  String model
          The end-user-visible name for the end product.
private  String product
          The name of the overall product.
private  String release
          The user-visible version string.
private  String uuid
          A UUID created upon installation/first start of the application
 
Constructor Summary
DeviceInformation()
          Constructor
 
Method Summary
 boolean equals(Object o)
           
 String getDevice()
          Getter for the device
 String getFingerprint()
          Getter for the fingerprint
 String getId()
          Getter for the id
 String getManufacturer()
          Getter for the manufacturer
 String getModel()
          Getter for the model
 String getProduct()
          Getter for the product
 String getRelease()
          Getter for the release
 String getUuid()
          Getter for the uuid
 void setDevice(String device)
          Setter for the device
 void setFingerprint(String fingerprint)
          Setter for the fingerprint
 void setId(String id)
          Setter for the id
 void setManufacturer(String manufacturer)
          Setter for the manufacturer
 void setModel(String model)
          Setter for the model
 void setProduct(String product)
          Setter for the product
 void setRelease(String release)
          Setter for the release
 void setUuid(String uuid)
          Setter for the uuid
 String toString()
           
 String toXML()
          Serialization from the type to it's XML representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEVICE_INFO_FILE

public static final String DEVICE_INFO_FILE
The filename for the serialized device info

See Also:
Constant Field Values

product

private String product
The name of the overall product.


model

private String model
The end-user-visible name for the end product.


device

private String device
The name of the industrial design.


manufacturer

private String manufacturer
The manufacturer of the hardware.


id

private String id
Either a change list number, or a label like "M4-rc20".


release

private String release
The user-visible version string.


fingerprint

private String fingerprint
A string that uniquely identifies the build.


uuid

private String uuid
A UUID created upon installation/first start of the application

Constructor Detail

DeviceInformation

public DeviceInformation()
Constructor

Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getUuid

public String getUuid()
Getter for the uuid

Returns:
the uuid

setUuid

public void setUuid(String uuid)
Setter for the uuid

Parameters:
uuid - the uuid to set

getProduct

public final String getProduct()
Getter for the product

Returns:
the product

setProduct

public final void setProduct(String product)
Setter for the product

Parameters:
product - the product to set

getModel

public final String getModel()
Getter for the model

Returns:
the model

setModel

public final void setModel(String model)
Setter for the model

Parameters:
model - the model to set

getDevice

public final String getDevice()
Getter for the device

Returns:
the device

setDevice

public final void setDevice(String device)
Setter for the device

Parameters:
device - the device to set

getManufacturer

public final String getManufacturer()
Getter for the manufacturer

Returns:
the manufacturer

setManufacturer

public final void setManufacturer(String manufacturer)
Setter for the manufacturer

Parameters:
manufacturer - the manufacturer to set

getId

public final String getId()
Getter for the id

Returns:
the id

setId

public final void setId(String id)
Setter for the id

Parameters:
id - the id to set

getRelease

public final String getRelease()
Getter for the release

Returns:
the release

setRelease

public final void setRelease(String release)
Setter for the release

Parameters:
release - the release to set

getFingerprint

public final String getFingerprint()
Getter for the fingerprint

Returns:
the fingerprint

setFingerprint

public final void setFingerprint(String fingerprint)
Setter for the fingerprint

Parameters:
fingerprint - the fingerprint to set

toString

public final String toString()
Overrides:
toString in class Object

toXML

public String toXML()
             throws Exception
Description copied from interface: SerializableData
Serialization from the type to it's XML representation

Specified by:
toXML in interface SerializableData
Returns:
the XML representation of the type if successful, null otherwise
Throws:
Exception - if the schema for the object is not valid