|
||||||||||
| 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.Value
public class Value
A value associated with a property and component within the dataset.
| Field Summary | |
|---|---|
private Boolean |
asBool
|
private Double |
asNumber
|
private String |
description
|
private int |
descriptionIndex
|
private String |
name
|
private int |
nameIndex
|
private Profile[] |
profiles
|
private Property |
property
|
(package private) int |
propertyIndex
|
static int |
RECORD_LENGTH
|
private Signature[] |
signatures
|
private URL |
url
|
private int |
urlIndex
|
| Constructor Summary | |
|---|---|
Value(Dataset dataSet,
int index,
BinaryReader reader)
Constructs a new instance of Value |
|
| Method Summary | |
|---|---|
int |
compareTo(Value other)
Compares this value to another using the index field if they're in the same list other wise the name value. |
Component |
getComponent()
The component the value relates to. |
String |
getDescription()
A description of the value suitable to be displayed to end users via a user interface. |
boolean |
getIsDefault()
Returns true if the value is the null value for the property. |
String |
getName()
The name of the value. |
Profile[] |
getProfiles()
Array containing the profiles the value is associated with. |
private Profile[] |
GetProfiles()
Gets all the profiles associated with the value. |
Property |
getProperty()
The property the value relates to. |
Signature[] |
getSignatures()
Array containing the signatures that the value is associated with. |
private Signature[] |
GetSignatures()
Gets all the signatures associated with the value. |
URL |
getUrl()
A url to more information about the value. |
void |
init()
Called after the entire data set has been loaded to ensure any further initialisation steps that require other items in the data set can be completed. |
boolean |
toBool()
Returns the value as a boolean. |
double |
toDouble()
Returns the value as a number. |
String |
toString()
Returns the value as a string. |
| 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 |
|---|
public static final int RECORD_LENGTH
private String name
private final int nameIndex
private Signature[] signatures
private Profile[] profiles
private Property property
final int propertyIndex
private String description
private final int descriptionIndex
private URL url
private final int urlIndex
private Double asNumber
private Boolean asBool
| Constructor Detail |
|---|
public Value(Dataset dataSet,
int index,
BinaryReader reader)
dataSet - The data set the value is contained withinindex - The index in the data structure to the valuereader - Reader connected to the source data structure and
positioned to start reading| Method Detail |
|---|
public String getName()
throws IOException
IOException
public Signature[] getSignatures()
throws IOException
IOException
public Profile[] getProfiles()
throws IOException
IOException
public Property getProperty()
throws IOException
IOException
public Component getComponent()
throws IOException
IOException
public String getDescription()
throws IOException
IOException
public URL getUrl()
throws IOException
IOException
public void init()
throws IOException
IOException
private Profile[] GetProfiles()
throws IOException
IOException
private Signature[] GetSignatures()
throws IOException
IOExceptionpublic int compareTo(Value other)
compareTo in interface Comparable<Value>other - The value to be compared against
public String toString()
toString in class Object
public double toDouble()
throws IOException
IOException
public boolean toBool()
throws IOException
IOException
public boolean getIsDefault()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||