public class Profile extends BaseEntity implements Comparable<Profile>
| Modifier and Type | Field and Description |
|---|---|
private Component |
component |
private int |
componentIndex |
private static int |
MIN_LENGTH |
private SortedList<String,Values> |
nameToValues |
int |
profileId
Unique Id of the profile.
|
private Property[] |
properties |
private static Comparator<Value> |
propertyComparator
Comparator used to order the properties by descending display order.
|
private int[] |
signatureIndexes |
private Signature[] |
signatures |
private String |
stringValue |
private int[] |
valueIndexes
A list of the indexes of the values associated with the profile.
|
private Value[] |
values |
| Constructor and Description |
|---|
Profile(Dataset dataSet,
int offset,
BinaryReader reader)
Constructs a new instance of the Profile
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Profile other)
Compares this profile to another using the numeric ProfileId field.
|
private Property[] |
doGetProperties() |
private Signature[] |
doGetSignatures() |
private Value[] |
doGetValues() |
Component |
getComponent() |
int |
getLength() |
Property[] |
getProperties() |
int[] |
getSignatureIndexes() |
int[] |
getValueIndexes() |
Value[] |
getValues() |
Values |
getValues(Property property)
Gets the values associated with the property.
|
Values |
getValues(String propertyName)
Gets the values associated with the property name.
|
void |
init()
If storage of object references is enabled initialises the arrays of
related properties and values.
|
Signature[] |
Signatures() |
String |
toString()
A string representation of the profiles display values.
|
binarySearch, getDataSet, getIndex, readIntegerArrayprivate static final Comparator<Value> propertyComparator
public final int profileId
private final int[] valueIndexes
private SortedList<String,Values> nameToValues
private Signature[] signatures
private final int[] signatureIndexes
private Component component
private final int componentIndex
private Value[] values
private Property[] properties
private String stringValue
private static final int MIN_LENGTH
public Profile(Dataset dataSet, int offset, BinaryReader reader)
dataSet - The data set the profile will be contained with inoffset - The offset of the profile in the source data structurereader - Reader connected to the input streampublic Values getValues(String propertyName) throws IOException
propertyName - Name of the property whose values are requiredIOExceptionpublic Values getValues(Property property) throws IOException
property - The property whose values are requiredIOExceptionpublic Signature[] Signatures() throws IOException
IOExceptionpublic Component getComponent() throws IOException
IOExceptionpublic Value[] getValues() throws IOException
IOExceptionpublic Property[] getProperties() throws IOException
IOExceptionpublic void init()
throws IOException
IOExceptionprivate Signature[] doGetSignatures() throws IOException
IOExceptionprivate Property[] doGetProperties() throws IOException
IOExceptionprivate Value[] doGetValues() throws IOException
IOExceptionpublic int compareTo(Profile other)
compareTo in interface Comparable<Profile>other - The component to be compared againstpublic String toString()
public int[] getValueIndexes()
public int[] getSignatureIndexes()
public int getLength()