|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfiftyone.mobile.detection.entities.BaseEntity
fiftyone.mobile.detection.entities.Component
public class Component
Every device can be split into the major components of hardware, operating system and browser. These the properties and values associated with these components are represented via this class.
| Field Summary | |
|---|---|
private int |
componentId
The unique Id of the component. |
private Profile |
defaultProfile
|
private int |
defaultProfileOffset
|
private String |
name
|
private int |
nameOffset
|
private Profile[] |
profiles
|
private Property[] |
properties
|
| Constructor Summary | |
|---|---|
Component(Dataset dataSet,
int index,
BinaryReader reader)
Constructs a new instance of Component |
|
| Method Summary | |
|---|---|
int |
compareTo(Component other)
Compares this component to another using the numeric ComponentId field. |
int |
getComponentId()
|
Profile |
getDefaultProfile()
The default profile that should be returned for the component. |
String |
getName()
The unique name of the component. |
Profile[] |
getProfiles()
An array of the p |
private Profile[] |
GetProfiles()
Returns an array of all the profiles that relate to this component. |
Property[] |
getProperties()
Array of properties the component relates to. |
private Property[] |
GetProperties()
Returns an array of the properties associated with the component. |
void |
init()
Initialises the references to profiles. |
String |
toString()
|
| Methods inherited from class fiftyone.mobile.detection.entities.BaseEntity |
|---|
binarySearch, getDataSet, getIndex, readIntegerArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final int componentId
private String name
private final int nameOffset
private Property[] properties
private Profile[] profiles
private Profile defaultProfile
private final int defaultProfileOffset
| Constructor Detail |
|---|
public Component(Dataset dataSet,
int index,
BinaryReader reader)
dataSet - The data set whose components list the component is
contained withinindex - Index of the component within the list| Method Detail |
|---|
public String getName()
throws IOException
IOException
public Property[] getProperties()
throws IOException
IOException
public Profile[] getProfiles()
throws IOException
IOException
public Profile getDefaultProfile()
throws IOException
IOException
public void init()
throws IOException
IOException
private Property[] GetProperties()
throws IOException
IOException
private Profile[] GetProfiles()
throws IOException
IOExceptionpublic int compareTo(Component other)
compareTo in interface Comparable<Component>other - The component to be compared against
public int getComponentId()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||