public class Component extends BaseEntity implements Comparable<Component>
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Component(Dataset dataSet,
int index,
BinaryReader reader)
Constructs a new instance of Component
|
| Modifier and Type | Method and Description |
|---|---|
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() |
binarySearch, getDataSet, getIndex, readIntegerArrayprivate final int componentId
private String name
private final int nameOffset
private Property[] properties
private Profile[] profiles
private Profile defaultProfile
private final int defaultProfileOffset
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 listpublic String getName() throws IOException
IOExceptionpublic Property[] getProperties() throws IOException
IOExceptionpublic Profile[] getProfiles() throws IOException
IOExceptionpublic Profile getDefaultProfile() throws IOException
IOExceptionpublic void init()
throws IOException
IOExceptionprivate Property[] GetProperties() throws IOException
IOExceptionprivate Profile[] GetProfiles() throws IOException
IOExceptionpublic int compareTo(Component other)
compareTo in interface Comparable<Component>other - The component to be compared againstpublic int getComponentId()