|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jpalm.DataBlock net.sourceforge.jpalm.mobiledb.record.AbstractRecord net.sourceforge.jpalm.mobiledb.record.FieldLabelsRecord
public class FieldLabelsRecord
The field labels record in a MobileDB database.
There should be exactly one of these records in a MobileDB database. The number of fields in this record determines the number of fields in the database.
Field Summary | |
---|---|
static net.sourceforge.juint.UInt8 |
CATEGORY_ID
The category identifier for this record. |
static int |
MAX_FIELD_WIDTH
The maximum length of a field label. 25 |
Fields inherited from class net.sourceforge.jpalm.mobiledb.record.AbstractRecord |
---|
fields, header, HEADER, TERIMINATOR, TRAILER |
Constructor Summary | |
---|---|
FieldLabelsRecord()
Creates a new field labels record with no fields. |
|
FieldLabelsRecord(byte[] data)
Creates a new field labels record from a byte array. |
|
FieldLabelsRecord(java.util.List<java.lang.String> fieldLabels)
Creates a new field labels record from a list of field labels. |
|
FieldLabelsRecord(Record record)
Creates a new field labels record from a Record . |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getFieldLabels()
Gets the field labels. |
void |
setFieldLabels(java.util.List<java.lang.String> fieldLabels)
Sets the field labels. |
Methods inherited from class net.sourceforge.jpalm.mobiledb.record.AbstractRecord |
---|
deserialize, equals, getHeader, getInternalFields, serialize, setHeader, setInternalFields, trimOrFillList |
Methods inherited from class net.sourceforge.jpalm.DataBlock |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_FIELD_WIDTH
public static final net.sourceforge.juint.UInt8 CATEGORY_ID
Constructor Detail |
---|
public FieldLabelsRecord()
public FieldLabelsRecord(byte[] data)
byte
array.
data
- the byte
arrayAbstractRecord.deserialize(byte[])
public FieldLabelsRecord(Record record)
Record
.
record
- the recordpublic FieldLabelsRecord(java.util.List<java.lang.String> fieldLabels)
fieldLabels
- the field labelssetFieldLabels(List)
Method Detail |
---|
public void setFieldLabels(java.util.List<java.lang.String> fieldLabels)
If the length of a label is longer than 25 characters, then it will be truncated to 25 characters.
public java.util.List<java.lang.String> getFieldLabels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |